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

Side by Side Diff: extensions/browser/guest_view/web_view/web_view_guest.h

Issue 691823002: Add WebContents source to methods in WebContentsDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 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_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 content::WebContents* source, 129 content::WebContents* source,
130 const content::MediaStreamRequest& request, 130 const content::MediaStreamRequest& request,
131 const content::MediaResponseCallback& callback) override; 131 const content::MediaResponseCallback& callback) override;
132 bool CheckMediaAccessPermission(content::WebContents* source, 132 bool CheckMediaAccessPermission(content::WebContents* source,
133 const GURL& security_origin, 133 const GURL& security_origin,
134 content::MediaStreamType type) override; 134 content::MediaStreamType type) override;
135 void CanDownload(content::RenderViewHost* render_view_host, 135 void CanDownload(content::RenderViewHost* render_view_host,
136 const GURL& url, 136 const GURL& url,
137 const std::string& request_method, 137 const std::string& request_method,
138 const base::Callback<void(bool)>& callback) override; 138 const base::Callback<void(bool)>& callback) override;
139 content::JavaScriptDialogManager* GetJavaScriptDialogManager() override; 139 content::JavaScriptDialogManager* GetJavaScriptDialogManager(
140 content::WebContents* source) override;
140 content::ColorChooser* OpenColorChooser( 141 content::ColorChooser* OpenColorChooser(
141 content::WebContents* web_contents, 142 content::WebContents* web_contents,
142 SkColor color, 143 SkColor color,
143 const std::vector<content::ColorSuggestion>& suggestions) override; 144 const std::vector<content::ColorSuggestion>& suggestions) override;
144 void AddNewContents(content::WebContents* source, 145 void AddNewContents(content::WebContents* source,
145 content::WebContents* new_contents, 146 content::WebContents* new_contents,
146 WindowOpenDisposition disposition, 147 WindowOpenDisposition disposition,
147 const gfx::Rect& initial_pos, 148 const gfx::Rect& initial_pos,
148 bool user_gesture, 149 bool user_gesture,
149 bool* was_blocked) override; 150 bool* was_blocked) override;
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 // This is used to ensure pending tasks will not fire after this object is 366 // This is used to ensure pending tasks will not fire after this object is
366 // destroyed. 367 // destroyed.
367 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; 368 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_;
368 369
369 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); 370 DISALLOW_COPY_AND_ASSIGN(WebViewGuest);
370 }; 371 };
371 372
372 } // namespace extensions 373 } // namespace extensions
373 374
374 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 375 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698