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

Side by Side Diff: extensions/renderer/runtime_custom_bindings.h

Issue 664933004: Standardize usage of virtual/override/final in extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « extensions/renderer/resource_bundle_source_map.h ('k') | extensions/renderer/safe_builtins.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef EXTENSIONS_RENDERER_RUNTIME_CUSTOM_BINDINGS_H_ 5 #ifndef EXTENSIONS_RENDERER_RUNTIME_CUSTOM_BINDINGS_H_
6 #define EXTENSIONS_RENDERER_RUNTIME_CUSTOM_BINDINGS_H_ 6 #define EXTENSIONS_RENDERER_RUNTIME_CUSTOM_BINDINGS_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "extensions/renderer/object_backed_native_handler.h" 9 #include "extensions/renderer/object_backed_native_handler.h"
10 #include "v8/include/v8.h" 10 #include "v8/include/v8.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 // The native component of custom bindings for the chrome.runtime API. 14 // The native component of custom bindings for the chrome.runtime API.
15 class RuntimeCustomBindings : public ObjectBackedNativeHandler { 15 class RuntimeCustomBindings : public ObjectBackedNativeHandler {
16 public: 16 public:
17 explicit RuntimeCustomBindings(ScriptContext* context); 17 explicit RuntimeCustomBindings(ScriptContext* context);
18 18
19 virtual ~RuntimeCustomBindings(); 19 ~RuntimeCustomBindings() override;
20 20
21 // Creates a new messaging channel to the given extension. 21 // Creates a new messaging channel to the given extension.
22 void OpenChannelToExtension(const v8::FunctionCallbackInfo<v8::Value>& args); 22 void OpenChannelToExtension(const v8::FunctionCallbackInfo<v8::Value>& args);
23 23
24 // Creates a new messaging channels for the specified native application. 24 // Creates a new messaging channels for the specified native application.
25 void OpenChannelToNativeApp(const v8::FunctionCallbackInfo<v8::Value>& args); 25 void OpenChannelToNativeApp(const v8::FunctionCallbackInfo<v8::Value>& args);
26 26
27 private: 27 private:
28 void GetManifest(const v8::FunctionCallbackInfo<v8::Value>& args); 28 void GetManifest(const v8::FunctionCallbackInfo<v8::Value>& args);
29 void GetExtensionViews(const v8::FunctionCallbackInfo<v8::Value>& args); 29 void GetExtensionViews(const v8::FunctionCallbackInfo<v8::Value>& args);
30 }; 30 };
31 31
32 } // namespace extensions 32 } // namespace extensions
33 33
34 #endif // EXTENSIONS_RENDERER_RUNTIME_CUSTOM_BINDINGS_H_ 34 #endif // EXTENSIONS_RENDERER_RUNTIME_CUSTOM_BINDINGS_H_
OLDNEW
« no previous file with comments | « extensions/renderer/resource_bundle_source_map.h ('k') | extensions/renderer/safe_builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698