| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 ~BackgroundContents() override; | 66 ~BackgroundContents() override; |
| 67 | 67 |
| 68 content::WebContents* web_contents() const { return web_contents_.get(); } | 68 content::WebContents* web_contents() const { return web_contents_.get(); } |
| 69 virtual const GURL& GetURL() const; | 69 virtual const GURL& GetURL() const; |
| 70 | 70 |
| 71 // Adds this BackgroundContents to the queue of RenderViews to create. | 71 // Adds this BackgroundContents to the queue of RenderViews to create. |
| 72 void CreateRenderViewSoon(const GURL& url); | 72 void CreateRenderViewSoon(const GURL& url); |
| 73 | 73 |
| 74 // content::WebContentsDelegate implementation: | 74 // content::WebContentsDelegate implementation: |
| 75 void CloseContents(content::WebContents* source) override; | 75 void CloseContents(content::WebContents* source) override; |
| 76 bool ShouldSuppressDialogs(content::WebContents* source) override; | 76 bool ShouldSuppressDialogs(content::WebContents* source, |
| 77 bool before_unload) override; |
| 77 void DidNavigateMainFramePostCommit(content::WebContents* tab) override; | 78 void DidNavigateMainFramePostCommit(content::WebContents* tab) override; |
| 78 void AddNewContents(content::WebContents* source, | 79 void AddNewContents(content::WebContents* source, |
| 79 content::WebContents* new_contents, | 80 content::WebContents* new_contents, |
| 80 WindowOpenDisposition disposition, | 81 WindowOpenDisposition disposition, |
| 81 const gfx::Rect& initial_rect, | 82 const gfx::Rect& initial_rect, |
| 82 bool user_gesture, | 83 bool user_gesture, |
| 83 bool* was_blocked) override; | 84 bool* was_blocked) override; |
| 84 bool IsNeverVisible(content::WebContents* web_contents) override; | 85 bool IsNeverVisible(content::WebContents* web_contents) override; |
| 85 | 86 |
| 86 // content::WebContentsObserver implementation: | 87 // content::WebContentsObserver implementation: |
| (...skipping 42 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 |