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

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

Issue 2894973002: Provide WebContents::CreateParams to tab helpers. (Closed)
Patch Set: rebase Created 3 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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "components/guest_view/browser/guest_view.h" 14 #include "components/guest_view/browser/guest_view.h"
15 #include "content/public/browser/javascript_dialog_manager.h" 15 #include "content/public/browser/javascript_dialog_manager.h"
16 #include "content/public/browser/notification_observer.h" 16 #include "content/public/browser/notification_observer.h"
17 #include "content/public/browser/notification_registrar.h" 17 #include "content/public/browser/notification_registrar.h"
18 #include "content/public/browser/web_contents.h"
18 #include "extensions/browser/guest_view/web_view/javascript_dialog_helper.h" 19 #include "extensions/browser/guest_view/web_view/javascript_dialog_helper.h"
19 #include "extensions/browser/guest_view/web_view/web_view_find_helper.h" 20 #include "extensions/browser/guest_view/web_view/web_view_find_helper.h"
20 #include "extensions/browser/guest_view/web_view/web_view_guest_delegate.h" 21 #include "extensions/browser/guest_view/web_view/web_view_guest_delegate.h"
21 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.h" 22 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.h"
22 #include "extensions/browser/guest_view/web_view/web_view_permission_types.h" 23 #include "extensions/browser/guest_view/web_view/web_view_permission_types.h"
23 #include "extensions/browser/script_executor.h" 24 #include "extensions/browser/script_executor.h"
24 25
25 namespace blink { 26 namespace blink {
26 struct WebFindOptions; 27 struct WebFindOptions;
27 } // namespace blink 28 } // namespace blink
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 content::WebContents* source) final; 235 content::WebContents* source) final;
235 void AddNewContents(content::WebContents* source, 236 void AddNewContents(content::WebContents* source,
236 content::WebContents* new_contents, 237 content::WebContents* new_contents,
237 WindowOpenDisposition disposition, 238 WindowOpenDisposition disposition,
238 const gfx::Rect& initial_rect, 239 const gfx::Rect& initial_rect,
239 bool user_gesture, 240 bool user_gesture,
240 bool* was_blocked) final; 241 bool* was_blocked) final;
241 content::WebContents* OpenURLFromTab( 242 content::WebContents* OpenURLFromTab(
242 content::WebContents* source, 243 content::WebContents* source,
243 const content::OpenURLParams& params) final; 244 const content::OpenURLParams& params) final;
244 void WebContentsCreated(content::WebContents* source_contents, 245 void WebContentsCreated(
245 int opener_render_process_id, 246 content::WebContents* source_contents,
246 int opener_render_frame_id, 247 int opener_render_process_id,
247 const std::string& frame_name, 248 int opener_render_frame_id,
248 const GURL& target_url, 249 const std::string& frame_name,
249 content::WebContents* new_contents) final; 250 const GURL& target_url,
251 content::WebContents* new_contents,
252 const base::Optional<content::WebContents::CreateParams>& create_params)
253 final;
250 void EnterFullscreenModeForTab(content::WebContents* web_contents, 254 void EnterFullscreenModeForTab(content::WebContents* web_contents,
251 const GURL& origin) final; 255 const GURL& origin) final;
252 void ExitFullscreenModeForTab(content::WebContents* web_contents) final; 256 void ExitFullscreenModeForTab(content::WebContents* web_contents) final;
253 bool IsFullscreenForTabOrPending( 257 bool IsFullscreenForTabOrPending(
254 const content::WebContents* web_contents) const final; 258 const content::WebContents* web_contents) const final;
255 void RequestToLockMouse(content::WebContents* web_contents, 259 void RequestToLockMouse(content::WebContents* web_contents,
256 bool user_gesture, 260 bool user_gesture,
257 bool last_unlocked_by_target) override; 261 bool last_unlocked_by_target) override;
258 262
259 // WebContentsObserver implementation. 263 // WebContentsObserver implementation.
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 // This is used to ensure pending tasks will not fire after this object is 378 // This is used to ensure pending tasks will not fire after this object is
375 // destroyed. 379 // destroyed.
376 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; 380 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_;
377 381
378 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); 382 DISALLOW_COPY_AND_ASSIGN(WebViewGuest);
379 }; 383 };
380 384
381 } // namespace extensions 385 } // namespace extensions
382 386
383 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 387 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
OLDNEW
« no previous file with comments | « content/public/browser/web_contents_delegate.h ('k') | extensions/browser/guest_view/web_view/web_view_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698