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

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

Issue 315413004: Remove param |context_type| from InitOriginPermissions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 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_DISPATCHER_DELEGATE_H 5 #ifndef EXTENSIONS_RENDERER_DISPATCHER_DELEGATE_H
6 #define EXTENSIONS_RENDERER_DISPATCHER_DELEGATE_H 6 #define EXTENSIONS_RENDERER_DISPATCHER_DELEGATE_H
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 21 matching lines...) Expand all
32 virtual ~DispatcherDelegate() {} 32 virtual ~DispatcherDelegate() {}
33 33
34 // Creates a new ScriptContext for a given v8 context. 34 // Creates a new ScriptContext for a given v8 context.
35 virtual scoped_ptr<ScriptContext> CreateScriptContext( 35 virtual scoped_ptr<ScriptContext> CreateScriptContext(
36 const v8::Handle<v8::Context>& v8_context, 36 const v8::Handle<v8::Context>& v8_context,
37 blink::WebFrame* frame, 37 blink::WebFrame* frame,
38 const Extension* extension, 38 const Extension* extension,
39 Feature::Context context_type) = 0; 39 Feature::Context context_type) = 0;
40 40
41 // Initializes origin permissions for a newly created extension context. 41 // Initializes origin permissions for a newly created extension context.
42 virtual void InitOriginPermissions(const Extension* extension, 42 virtual void InitOriginPermissions(const Extension* extension) {}
43 Feature::Context context_type) {}
44 43
45 // Includes additional native handlers in a given ModuleSystem. 44 // Includes additional native handlers in a given ModuleSystem.
46 virtual void RegisterNativeHandlers(Dispatcher* dispatcher, 45 virtual void RegisterNativeHandlers(Dispatcher* dispatcher,
47 ModuleSystem* module_system, 46 ModuleSystem* module_system,
48 ScriptContext* context) {} 47 ScriptContext* context) {}
49 48
50 // Includes additional source resources into the resource map. 49 // Includes additional source resources into the resource map.
51 virtual void PopulateSourceMap(ResourceBundleSourceMap* source_map) {} 50 virtual void PopulateSourceMap(ResourceBundleSourceMap* source_map) {}
52 51
53 // Requires additional modules within an extension context's module system. 52 // Requires additional modules within an extension context's module system.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Allows the delegate to respond to reports from the browser about WebRequest 86 // Allows the delegate to respond to reports from the browser about WebRequest
88 // API usage from within this process. 87 // API usage from within this process.
89 virtual void HandleWebRequestAPIUsage(bool adblock, 88 virtual void HandleWebRequestAPIUsage(bool adblock,
90 bool adblock_plus, 89 bool adblock_plus,
91 bool other_webrequest) {} 90 bool other_webrequest) {}
92 }; 91 };
93 92
94 } // namespace extensions 93 } // namespace extensions
95 94
96 #endif // EXTENSIONS_RENDERER_DISPATCHER_DELEGATE_H 95 #endif // EXTENSIONS_RENDERER_DISPATCHER_DELEGATE_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698