| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_SHELL_SHELL_H_ | 5 #ifndef CONTENT_SHELL_SHELL_H_ |
| 6 #define CONTENT_SHELL_SHELL_H_ | 6 #define CONTENT_SHELL_SHELL_H_ |
| 7 | 7 |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 void GoBackOrForward(int offset); | 56 void GoBackOrForward(int offset); |
| 57 void Reload(); | 57 void Reload(); |
| 58 void Stop(); | 58 void Stop(); |
| 59 void UpdateNavigationControls(); | 59 void UpdateNavigationControls(); |
| 60 void Close(); | 60 void Close(); |
| 61 void ShowDevTools(); | 61 void ShowDevTools(); |
| 62 | 62 |
| 63 // Do one time initialization at application startup. | 63 // Do one time initialization at application startup. |
| 64 static void PlatformInitialize(); | 64 static void PlatformInitialize(); |
| 65 | 65 |
| 66 // This is called indirectly by the modules that need access resources. | |
| 67 static base::StringPiece PlatformResourceProvider(int key); | |
| 68 | |
| 69 static Shell* CreateNewWindow(BrowserContext* browser_context, | 66 static Shell* CreateNewWindow(BrowserContext* browser_context, |
| 70 const GURL& url, | 67 const GURL& url, |
| 71 SiteInstance* site_instance, | 68 SiteInstance* site_instance, |
| 72 int routing_id, | 69 int routing_id, |
| 73 WebContents* base_web_contents); | 70 WebContents* base_web_contents); |
| 74 | 71 |
| 75 // Returns the Shell object corresponding to the given RenderViewHost. | 72 // Returns the Shell object corresponding to the given RenderViewHost. |
| 76 static Shell* FromRenderViewHost(RenderViewHost* rvh); | 73 static Shell* FromRenderViewHost(RenderViewHost* rvh); |
| 77 | 74 |
| 78 // Returns the currently open windows. | 75 // Returns the currently open windows. |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 static base::Callback<void(Shell*)> shell_created_callback_; | 228 static base::Callback<void(Shell*)> shell_created_callback_; |
| 232 | 229 |
| 233 // True if the destructur of Shell should post a quit closure on the current | 230 // True if the destructur of Shell should post a quit closure on the current |
| 234 // message loop if the destructed Shell object was the last one. | 231 // message loop if the destructed Shell object was the last one. |
| 235 static bool quit_message_loop_; | 232 static bool quit_message_loop_; |
| 236 }; | 233 }; |
| 237 | 234 |
| 238 } // namespace content | 235 } // namespace content |
| 239 | 236 |
| 240 #endif // CONTENT_SHELL_SHELL_H_ | 237 #endif // CONTENT_SHELL_SHELL_H_ |
| OLD | NEW |