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

Side by Side Diff: chrome/renderer/extensions/media_galleries_custom_bindings.cc

Issue 16032015: Extensions: pass ChromeV8Context around instead of v8::Handle. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 6 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 #include "chrome/renderer/extensions/media_galleries_custom_bindings.h" 5 #include "chrome/renderer/extensions/media_galleries_custom_bindings.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/stringprintf.h" 10 #include "base/stringprintf.h"
11 #include "chrome/common/extensions/extension_constants.h" 11 #include "chrome/common/extensions/extension_constants.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
14 #include "v8/include/v8.h" 14 #include "v8/include/v8.h"
15 #include "webkit/common/fileapi/file_system_util.h" 15 #include "webkit/common/fileapi/file_system_util.h"
16 16
17 namespace extensions { 17 namespace extensions {
18 18
19 MediaGalleriesCustomBindings::MediaGalleriesCustomBindings( 19 MediaGalleriesCustomBindings::MediaGalleriesCustomBindings(
20 Dispatcher* dispatcher, v8::Handle<v8::Context> v8_context) 20 Dispatcher* dispatcher, ChromeV8Context* context)
21 : ChromeV8Extension(dispatcher, v8_context) { 21 : ChromeV8Extension(dispatcher, context) {
22 RouteFunction( 22 RouteFunction(
23 "GetMediaFileSystemObject", 23 "GetMediaFileSystemObject",
24 base::Bind(&MediaGalleriesCustomBindings::GetMediaFileSystemObject, 24 base::Bind(&MediaGalleriesCustomBindings::GetMediaFileSystemObject,
25 base::Unretained(this))); 25 base::Unretained(this)));
26 RouteFunction( 26 RouteFunction(
27 "ExtractEmbeddedThumbnails", 27 "ExtractEmbeddedThumbnails",
28 base::Bind(&MediaGalleriesCustomBindings::ExtractEmbeddedThumbnails, 28 base::Bind(&MediaGalleriesCustomBindings::ExtractEmbeddedThumbnails,
29 base::Unretained(this))); 29 base::Unretained(this)));
30 } 30 }
31 31
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 NOTREACHED() << "Bad arguments"; 63 NOTREACHED() << "Bad arguments";
64 return v8::Undefined(); 64 return v8::Undefined();
65 } 65 }
66 // TODO(vandebo) Check that the object is a FileEntry. 66 // TODO(vandebo) Check that the object is a FileEntry.
67 67
68 // TODO(vandebo) Create and return a Directory entry object. 68 // TODO(vandebo) Create and return a Directory entry object.
69 return v8::Null(); 69 return v8::Null();
70 } 70 }
71 71
72 } // namespace extensions 72 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698