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_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 bool user_gesture, | 39 bool user_gesture, |
40 bool* was_blocked) = 0; | 40 bool* was_blocked) = 0; |
41 | 41 |
42 protected: | 42 protected: |
43 virtual ~Delegate() {} | 43 virtual ~Delegate() {} |
44 }; | 44 }; |
45 | 45 |
46 BackgroundContents( | 46 BackgroundContents( |
47 content::SiteInstance* site_instance, | 47 content::SiteInstance* site_instance, |
48 int routing_id, | 48 int routing_id, |
| 49 int main_frame_routing_id, |
49 Delegate* delegate, | 50 Delegate* delegate, |
50 const std::string& partition_id, | 51 const std::string& partition_id, |
51 content::SessionStorageNamespace* session_storage_namespace); | 52 content::SessionStorageNamespace* session_storage_namespace); |
52 ~BackgroundContents() override; | 53 ~BackgroundContents() override; |
53 | 54 |
54 content::WebContents* web_contents() const { return web_contents_.get(); } | 55 content::WebContents* web_contents() const { return web_contents_.get(); } |
55 virtual const GURL& GetURL() const; | 56 virtual const GURL& GetURL() const; |
56 | 57 |
57 // content::WebContentsDelegate implementation: | 58 // content::WebContentsDelegate implementation: |
58 void CloseContents(content::WebContents* source) override; | 59 void CloseContents(content::WebContents* source) override; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 BackgroundContents* contents; | 96 BackgroundContents* contents; |
96 | 97 |
97 // The name of the parent frame for these contents. | 98 // The name of the parent frame for these contents. |
98 const base::string16& frame_name; | 99 const base::string16& frame_name; |
99 | 100 |
100 // The ID of the parent application (if any). | 101 // The ID of the parent application (if any). |
101 const base::string16& application_id; | 102 const base::string16& application_id; |
102 }; | 103 }; |
103 | 104 |
104 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ | 105 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ |
OLD | NEW |