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

Side by Side Diff: chrome/browser/extensions/extension_function_dispatcher.cc

Issue 10119003: Pull shell window stuff out of ExtensionHost and put in ShellWindow (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comments Created 8 years, 7 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
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/browser/extensions/extension_function_dispatcher.h" 5 #include "chrome/browser/extensions/extension_function_dispatcher.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/json/json_string_value_serializer.h" 9 #include "base/json/json_string_value_serializer.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 struct Static { 87 struct Static {
88 Static() 88 Static()
89 : api(extensions::ExtensionAPI::CreateWithDefaultConfiguration()) { 89 : api(extensions::ExtensionAPI::CreateWithDefaultConfiguration()) {
90 } 90 }
91 scoped_ptr<extensions::ExtensionAPI> api; 91 scoped_ptr<extensions::ExtensionAPI> api;
92 }; 92 };
93 base::LazyInstance<Static> g_global_io_data = LAZY_INSTANCE_INITIALIZER; 93 base::LazyInstance<Static> g_global_io_data = LAZY_INSTANCE_INITIALIZER;
94 94
95 } // namespace 95 } // namespace
96 96
97 ExtensionWindowController*
98 ExtensionFunctionDispatcher::Delegate::GetExtensionWindowController()
99 const {
100 return NULL;
101 }
102
103 content::WebContents*
104 ExtensionFunctionDispatcher::Delegate::GetAssociatedWebContents() const {
105 return NULL;
106 }
97 107
98 void ExtensionFunctionDispatcher::GetAllFunctionNames( 108 void ExtensionFunctionDispatcher::GetAllFunctionNames(
99 std::vector<std::string>* names) { 109 std::vector<std::string>* names) {
100 ExtensionFunctionRegistry::GetInstance()->GetAllNames(names); 110 ExtensionFunctionRegistry::GetInstance()->GetAllNames(names);
101 } 111 }
102 112
103 bool ExtensionFunctionDispatcher::OverrideFunction( 113 bool ExtensionFunctionDispatcher::OverrideFunction(
104 const std::string& name, ExtensionFunctionFactory factory) { 114 const std::string& name, ExtensionFunctionFactory factory) {
105 return ExtensionFunctionRegistry::GetInstance()->OverrideFunction(name, 115 return ExtensionFunctionRegistry::GetInstance()->OverrideFunction(name,
106 factory); 116 factory);
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 } 287 }
278 288
279 // static 289 // static
280 void ExtensionFunctionDispatcher::SendAccessDenied( 290 void ExtensionFunctionDispatcher::SendAccessDenied(
281 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { 291 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) {
282 ListValue empty_list; 292 ListValue empty_list;
283 ipc_sender->Send(new ExtensionMsg_Response( 293 ipc_sender->Send(new ExtensionMsg_Response(
284 routing_id, request_id, false, empty_list, 294 routing_id, request_id, false, empty_list,
285 "Access to extension API denied.")); 295 "Access to extension API denied."));
286 } 296 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_function_dispatcher.h ('k') | chrome/browser/extensions/extension_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698