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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 virtual void CloseContents(content::WebContents* source) OVERRIDE; | 58 virtual void CloseContents(content::WebContents* source) OVERRIDE; |
59 virtual bool ShouldSuppressDialogs() OVERRIDE; | 59 virtual bool ShouldSuppressDialogs() OVERRIDE; |
60 virtual void DidNavigateMainFramePostCommit( | 60 virtual void DidNavigateMainFramePostCommit( |
61 content::WebContents* tab) OVERRIDE; | 61 content::WebContents* tab) OVERRIDE; |
62 virtual void AddNewContents(content::WebContents* source, | 62 virtual void AddNewContents(content::WebContents* source, |
63 content::WebContents* new_contents, | 63 content::WebContents* new_contents, |
64 WindowOpenDisposition disposition, | 64 WindowOpenDisposition disposition, |
65 const gfx::Rect& initial_pos, | 65 const gfx::Rect& initial_pos, |
66 bool user_gesture, | 66 bool user_gesture, |
67 bool* was_blocked) OVERRIDE; | 67 bool* was_blocked) OVERRIDE; |
| 68 virtual bool IsNeverVisible(content::WebContents* web_contents) OVERRIDE; |
68 | 69 |
69 // content::WebContentsObserver implementation: | 70 // content::WebContentsObserver implementation: |
70 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; | 71 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; |
71 | 72 |
72 // content::NotificationObserver | 73 // content::NotificationObserver |
73 virtual void Observe(int type, | 74 virtual void Observe(int type, |
74 const content::NotificationSource& source, | 75 const content::NotificationSource& source, |
75 const content::NotificationDetails& details) OVERRIDE; | 76 const content::NotificationDetails& details) OVERRIDE; |
76 | 77 |
77 protected: | 78 protected: |
(...skipping 17 matching lines...) Expand all 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 |