OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |