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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 Delegate* delegate, | 49 Delegate* delegate, |
50 const std::string& partition_id, | 50 const std::string& partition_id, |
51 content::SessionStorageNamespace* session_storage_namespace); | 51 content::SessionStorageNamespace* session_storage_namespace); |
52 ~BackgroundContents() override; | 52 ~BackgroundContents() override; |
53 | 53 |
54 content::WebContents* web_contents() const { return web_contents_.get(); } | 54 content::WebContents* web_contents() const { return web_contents_.get(); } |
55 virtual const GURL& GetURL() const; | 55 virtual const GURL& GetURL() const; |
56 | 56 |
57 // content::WebContentsDelegate implementation: | 57 // content::WebContentsDelegate implementation: |
58 void CloseContents(content::WebContents* source) override; | 58 void CloseContents(content::WebContents* source) override; |
59 bool ShouldSuppressDialogs() override; | 59 bool ShouldSuppressDialogs(content::WebContents* source) override; |
60 void DidNavigateMainFramePostCommit(content::WebContents* tab) override; | 60 void DidNavigateMainFramePostCommit(content::WebContents* tab) override; |
61 void AddNewContents(content::WebContents* source, | 61 void AddNewContents(content::WebContents* source, |
62 content::WebContents* new_contents, | 62 content::WebContents* new_contents, |
63 WindowOpenDisposition disposition, | 63 WindowOpenDisposition disposition, |
64 const gfx::Rect& initial_pos, | 64 const gfx::Rect& initial_pos, |
65 bool user_gesture, | 65 bool user_gesture, |
66 bool* was_blocked) override; | 66 bool* was_blocked) override; |
67 bool IsNeverVisible(content::WebContents* web_contents) override; | 67 bool IsNeverVisible(content::WebContents* web_contents) override; |
68 | 68 |
69 // content::WebContentsObserver implementation: | 69 // content::WebContentsObserver implementation: |
(...skipping 25 matching lines...) Expand all Loading... |
95 BackgroundContents* contents; | 95 BackgroundContents* contents; |
96 | 96 |
97 // The name of the parent frame for these contents. | 97 // The name of the parent frame for these contents. |
98 const base::string16& frame_name; | 98 const base::string16& frame_name; |
99 | 99 |
100 // The ID of the parent application (if any). | 100 // The ID of the parent application (if any). |
101 const base::string16& application_id; | 101 const base::string16& application_id; |
102 }; | 102 }; |
103 | 103 |
104 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ | 104 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ |
OLD | NEW |