| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual void DidNavigateMainFramePostCommit( | 56 virtual void DidNavigateMainFramePostCommit( |
| 57 content::WebContents* tab) OVERRIDE; | 57 content::WebContents* tab) OVERRIDE; |
| 58 virtual void AddNewContents(content::WebContents* source, | 58 virtual void AddNewContents(content::WebContents* source, |
| 59 content::WebContents* new_contents, | 59 content::WebContents* new_contents, |
| 60 WindowOpenDisposition disposition, | 60 WindowOpenDisposition disposition, |
| 61 const gfx::Rect& initial_pos, | 61 const gfx::Rect& initial_pos, |
| 62 bool user_gesture, | 62 bool user_gesture, |
| 63 bool* was_blocked) OVERRIDE; | 63 bool* was_blocked) OVERRIDE; |
| 64 | 64 |
| 65 // content::WebContentsObserver implementation: | 65 // content::WebContentsObserver implementation: |
| 66 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; | 66 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; |
| 67 | 67 |
| 68 // content::NotificationObserver | 68 // content::NotificationObserver |
| 69 virtual void Observe(int type, | 69 virtual void Observe(int type, |
| 70 const content::NotificationSource& source, | 70 const content::NotificationSource& source, |
| 71 const content::NotificationDetails& details) OVERRIDE; | 71 const content::NotificationDetails& details) OVERRIDE; |
| 72 | 72 |
| 73 protected: | 73 protected: |
| 74 // Exposed for testing. | 74 // Exposed for testing. |
| 75 BackgroundContents(); | 75 BackgroundContents(); |
| 76 | 76 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 91 BackgroundContents* contents; | 91 BackgroundContents* contents; |
| 92 | 92 |
| 93 // The name of the parent frame for these contents. | 93 // The name of the parent frame for these contents. |
| 94 const string16& frame_name; | 94 const string16& frame_name; |
| 95 | 95 |
| 96 // The ID of the parent application (if any). | 96 // The ID of the parent application (if any). |
| 97 const string16& application_id; | 97 const string16& application_id; |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ | 100 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ |
| OLD | NEW |