Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: chrome/browser/extensions/api/media_galleries/media_galleries_api.cc

Issue 10808093: move openMediaGalleryManager fn out of experimental. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 80 chars Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Implements the Chrome Extensions Media Galleries API. 5 // Implements the Chrome Extensions Media Galleries API.
6 6
7 #include "chrome/browser/extensions/api/media_galleries/media_galleries_api.h" 7 #include "chrome/browser/extensions/api/media_galleries/media_galleries_api.h"
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/platform_file.h" 12 #include "base/platform_file.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/browser/media_gallery/media_file_system_registry.h" 14 #include "chrome/browser/media_gallery/media_file_system_registry.h"
15 #include "chrome/common/extensions/api/experimental_media_galleries.h" 15 #include "chrome/common/extensions/api/experimental_media_galleries.h"
16 #include "chrome/common/extensions/api/media_galleries.h"
16 #include "content/public/browser/child_process_security_policy.h" 17 #include "content/public/browser/child_process_security_policy.h"
17 #include "content/public/browser/render_process_host.h" 18 #include "content/public/browser/render_process_host.h"
18 #include "content/public/browser/render_view_host.h" 19 #include "content/public/browser/render_view_host.h"
19 20
20 #if defined(OS_WIN) 21 #if defined(OS_WIN)
21 #include "base/sys_string_conversions.h" 22 #include "base/sys_string_conversions.h"
22 #endif 23 #endif
23 24
24 namespace extensions { 25 namespace extensions {
25 26
26 namespace { 27 namespace {
27 28
28 const char kInvalidInteractive[] = "Unknown value for interactive."; 29 const char kInvalidInteractive[] = "Unknown value for interactive.";
29 30
30 } // namespace 31 } // namespace
31 32
32 using chrome::MediaFileSystemRegistry; 33 using chrome::MediaFileSystemRegistry;
33 using content::ChildProcessSecurityPolicy; 34 using content::ChildProcessSecurityPolicy;
34 35
35 namespace MediaGalleries = extensions::api::experimental_media_galleries; 36 namespace MediaGalleries = extensions::api::media_galleries;
36 namespace GetMediaFileSystems = MediaGalleries::GetMediaFileSystems; 37 namespace GetMediaFileSystems = MediaGalleries::GetMediaFileSystems;
37 38
38 MediaGalleriesGetMediaFileSystemsFunction:: 39 MediaGalleriesGetMediaFileSystemsFunction::
39 ~MediaGalleriesGetMediaFileSystemsFunction() {} 40 ~MediaGalleriesGetMediaFileSystemsFunction() {}
40 41
41 bool MediaGalleriesGetMediaFileSystemsFunction::RunImpl() { 42 bool MediaGalleriesGetMediaFileSystemsFunction::RunImpl() {
42 scoped_ptr<GetMediaFileSystems::Params> params( 43 scoped_ptr<GetMediaFileSystems::Params> params(
43 GetMediaFileSystems::Params::Create(*args_)); 44 GetMediaFileSystems::Params::Create(*args_));
44 EXTENSION_FUNCTION_VALIDATE(params.get()); 45 EXTENSION_FUNCTION_VALIDATE(params.get());
45 MediaGalleries::GetMediaFileSystemsInteractivity interactive = "no"; 46 MediaGalleries::GetMediaFileSystemsInteractivity interactive = "no";
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 MediaGalleriesAssembleMediaFileFunction:: 99 MediaGalleriesAssembleMediaFileFunction::
99 ~MediaGalleriesAssembleMediaFileFunction() {} 100 ~MediaGalleriesAssembleMediaFileFunction() {}
100 101
101 bool MediaGalleriesAssembleMediaFileFunction::RunImpl() { 102 bool MediaGalleriesAssembleMediaFileFunction::RunImpl() {
102 // TODO(vandebo) Update the metadata and return the new file. 103 // TODO(vandebo) Update the metadata and return the new file.
103 SetResult(Value::CreateNullValue()); 104 SetResult(Value::CreateNullValue());
104 return true; 105 return true;
105 } 106 }
106 107
107 } // namespace extensions 108 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698