OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // Implements the Chrome Extensions Cookies API. | |
6 | |
7 #include "chrome/browser/extensions/api/media_gallery/media_gallery_api.h" | |
8 | |
9 #include "base/values.h" | |
10 | |
11 namespace extensions { | |
12 | |
jstritar
2012/02/16 21:34:18
Can you add an apitest for these methods? It will
vandebo (ex-Chrome)
2012/03/19 23:09:52
Done. But I had to change the "Blob" type argument
| |
13 GetMediaGalleriesFunction::~GetMediaGalleriesFunction() {} | |
14 | |
15 bool GetMediaGalleriesFunction::RunImpl() { | |
16 // TODO(vandebo) Get the list of galleries. | |
17 result_.reset(new ListValue); | |
18 SendResponse(true); | |
jstritar
2012/02/16 21:34:18
You won't need these SendResponses once they're Sy
vandebo (ex-Chrome)
2012/03/19 23:09:52
Done.
| |
19 return true; | |
20 } | |
21 | |
22 OpenMediaGalleryManagerFunction::~OpenMediaGalleryManagerFunction() {} | |
23 | |
24 bool OpenMediaGalleryManagerFunction::RunImpl() { | |
25 // TODO(vandebo) Open a new tab/ui surface with config UI. | |
26 return true; | |
27 } | |
28 | |
29 AssembleMediaFileFunction::~AssembleMediaFileFunction() {} | |
30 | |
31 bool AssembleMediaFileFunction::RunImpl() { | |
32 // TODO(vandebo) Update the metadata and return the new file. | |
33 result_.reset(Value::CreateNullValue()); | |
34 SendResponse(true); | |
35 return true; | |
36 } | |
37 | |
38 ParseMediaFileMetadataFunction::~ParseMediaFileMetadataFunction() {} | |
39 | |
40 bool ParseMediaFileMetadataFunction::RunImpl() { | |
41 // TODO(vandebo) Try to parse the file. | |
42 result_.reset(Value::CreateNullValue()); | |
43 SendResponse(true); | |
44 return true; | |
45 } | |
46 | |
47 } // namespace extensions | |
OLD | NEW |