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

Side by Side Diff: chrome/browser/background/background_contents.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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BACKGROUND_BACKGROUND_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_H_
6 #define CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_H_ 6 #define CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 const gfx::Rect& initial_rect, 50 const gfx::Rect& initial_rect,
51 bool user_gesture, 51 bool user_gesture,
52 bool* was_blocked) = 0; 52 bool* was_blocked) = 0;
53 53
54 protected: 54 protected:
55 virtual ~Delegate() {} 55 virtual ~Delegate() {}
56 }; 56 };
57 57
58 BackgroundContents( 58 BackgroundContents(
59 scoped_refptr<content::SiteInstance> site_instance, 59 scoped_refptr<content::SiteInstance> site_instance,
60 content::RenderFrameHost* opener,
60 int32_t routing_id, 61 int32_t routing_id,
61 int32_t main_frame_routing_id, 62 int32_t main_frame_routing_id,
62 int32_t main_frame_widget_routing_id, 63 int32_t main_frame_widget_routing_id,
63 Delegate* delegate, 64 Delegate* delegate,
64 const std::string& partition_id, 65 const std::string& partition_id,
65 content::SessionStorageNamespace* session_storage_namespace); 66 content::SessionStorageNamespace* session_storage_namespace);
66 ~BackgroundContents() override; 67 ~BackgroundContents() override;
67 68
68 content::WebContents* web_contents() const { return web_contents_.get(); } 69 content::WebContents* web_contents() const { return web_contents_.get(); }
69 virtual const GURL& GetURL() const; 70 virtual const GURL& GetURL() const;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 BackgroundContents* contents; 130 BackgroundContents* contents;
130 131
131 // The name of the parent frame for these contents. 132 // The name of the parent frame for these contents.
132 const std::string& frame_name; 133 const std::string& frame_name;
133 134
134 // The ID of the parent application (if any). 135 // The ID of the parent application (if any).
135 const base::string16& application_id; 136 const base::string16& application_id;
136 }; 137 };
137 138
138 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_H_ 139 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/document/document_web_contents_delegate.cc ('k') | chrome/browser/background/background_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698