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

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

Issue 458323002: Change GuestViewInternalCreateGuestFunction to create the guest view using the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add test Created 6 years, 4 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 #include "extensions/browser/extension_function_dispatcher.h" 5 #include "extensions/browser/extension_function_dispatcher.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/json/json_string_value_serializer.h" 8 #include "base/json/json_string_value_serializer.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 DISALLOW_COPY_AND_ASSIGN(UIThreadResponseCallbackWrapper); 195 DISALLOW_COPY_AND_ASSIGN(UIThreadResponseCallbackWrapper);
196 }; 196 };
197 197
198 WindowController* 198 WindowController*
199 ExtensionFunctionDispatcher::Delegate::GetExtensionWindowController() const { 199 ExtensionFunctionDispatcher::Delegate::GetExtensionWindowController() const {
200 return NULL; 200 return NULL;
201 } 201 }
202 202
203 content::WebContents* 203 content::WebContents*
204 ExtensionFunctionDispatcher::Delegate::GetAssociatedWebContents() const { 204 ExtensionFunctionDispatcher::Delegate::GetAssociatedWebContents() const {
205 NOTIMPLEMENTED();
205 return NULL; 206 return NULL;
206 } 207 }
207 208
208 content::WebContents* 209 content::WebContents*
209 ExtensionFunctionDispatcher::Delegate::GetVisibleWebContents() const { 210 ExtensionFunctionDispatcher::Delegate::GetVisibleWebContents() const {
210 return GetAssociatedWebContents(); 211 return GetAssociatedWebContents();
211 } 212 }
212 213
213 void ExtensionFunctionDispatcher::GetAllFunctionNames( 214 void ExtensionFunctionDispatcher::GetAllFunctionNames(
214 std::vector<std::string>* names) { 215 std::vector<std::string>* names) {
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 463
463 // static 464 // static
464 void ExtensionFunctionDispatcher::SendAccessDenied( 465 void ExtensionFunctionDispatcher::SendAccessDenied(
465 const ExtensionFunction::ResponseCallback& callback) { 466 const ExtensionFunction::ResponseCallback& callback) {
466 base::ListValue empty_list; 467 base::ListValue empty_list;
467 callback.Run(ExtensionFunction::FAILED, empty_list, 468 callback.Run(ExtensionFunction::FAILED, empty_list,
468 "Access to extension API denied."); 469 "Access to extension API denied.");
469 } 470 }
470 471
471 } // namespace extensions 472 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698