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

Side by Side Diff: chrome/browser/android/document/document_web_contents_delegate.h

Issue 2882513005: Propagate opener to BackgroundsContents. (Closed)
Patch Set: Tweaked the comment in DriveWebContentsManager::ShouldCreateWebContents 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
« no previous file with comments | « no previous file | chrome/browser/android/document/document_web_contents_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CHROME_BROWSER_ANDROID_DOCUMENT_DOCUMENT_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_DOCUMENT_DOCUMENT_WEB_CONTENTS_DELEGATE_H_
6 #define CHROME_BROWSER_ANDROID_DOCUMENT_DOCUMENT_WEB_CONTENTS_DELEGATE_H_ 6 #define CHROME_BROWSER_ANDROID_DOCUMENT_DOCUMENT_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "components/web_contents_delegate_android/web_contents_delegate_android .h" 10 #include "components/web_contents_delegate_android/web_contents_delegate_android .h"
(...skipping 23 matching lines...) Expand all
34 // Overridden from WebContentsDelegate. 34 // Overridden from WebContentsDelegate.
35 void AddNewContents(content::WebContents* source, 35 void AddNewContents(content::WebContents* source,
36 content::WebContents* new_contents, 36 content::WebContents* new_contents,
37 WindowOpenDisposition disposition, 37 WindowOpenDisposition disposition,
38 const gfx::Rect& initial_pos, 38 const gfx::Rect& initial_pos,
39 bool user_gesture, 39 bool user_gesture,
40 bool* was_blocked) override; 40 bool* was_blocked) override;
41 void CloseContents(content::WebContents* source) override; 41 void CloseContents(content::WebContents* source) override;
42 bool ShouldCreateWebContents( 42 bool ShouldCreateWebContents(
43 content::WebContents* web_contents, 43 content::WebContents* web_contents,
44 content::RenderFrameHost* opener,
44 content::SiteInstance* source_site_instance, 45 content::SiteInstance* source_site_instance,
45 int32_t route_id, 46 int32_t route_id,
46 int32_t main_frame_route_id, 47 int32_t main_frame_route_id,
47 int32_t main_frame_widget_route_id, 48 int32_t main_frame_widget_route_id,
48 content::mojom::WindowContainerType window_container_type, 49 content::mojom::WindowContainerType window_container_type,
49 const GURL& opener_url, 50 const GURL& opener_url,
50 const std::string& frame_name, 51 const std::string& frame_name,
51 const GURL& target_url, 52 const GURL& target_url,
52 const std::string& partition_id, 53 const std::string& partition_id,
53 content::SessionStorageNamespace* session_storage_namespace) override; 54 content::SessionStorageNamespace* session_storage_namespace) override;
54 }; 55 };
55 56
56 #endif // CHROME_BROWSER_ANDROID_DOCUMENT_DOCUMENT_WEB_CONTENTS_DELEGATE_H_ 57 #endif // CHROME_BROWSER_ANDROID_DOCUMENT_DOCUMENT_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/document/document_web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698