OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_WEB_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_ |
7 | 7 |
8 #include "base/hash_tables.h" | 8 #include "base/hash_tables.h" |
9 #include "chrome/browser/download/save_package.h" | 9 #include "chrome/browser/download/save_package.h" |
10 #include "chrome/browser/fav_icon_helper.h" | 10 #include "chrome/browser/fav_icon_helper.h" |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 | 473 |
474 // Helper functions for sending notifications. | 474 // Helper functions for sending notifications. |
475 void NotifySwapped(); | 475 void NotifySwapped(); |
476 void NotifyConnected(); | 476 void NotifyConnected(); |
477 void NotifyDisconnected(); | 477 void NotifyDisconnected(); |
478 | 478 |
479 // If params has a searchable form, this tries to create a new keyword. | 479 // If params has a searchable form, this tries to create a new keyword. |
480 void GenerateKeywordIfNecessary( | 480 void GenerateKeywordIfNecessary( |
481 const ViewHostMsg_FrameNavigate_Params& params); | 481 const ViewHostMsg_FrameNavigate_Params& params); |
482 | 482 |
| 483 // Helper function to launch the external browser. |
| 484 void OpenUrlInDefaultBrowserAndClosePage(const GURL& url, |
| 485 RenderViewHost* rvh); |
| 486 |
483 // Data ---------------------------------------------------------------------- | 487 // Data ---------------------------------------------------------------------- |
484 | 488 |
485 // The corresponding view. | 489 // The corresponding view. |
486 scoped_ptr<WebContentsView> view_; | 490 scoped_ptr<WebContentsView> view_; |
487 | 491 |
488 // Manages creation and swapping of render views. | 492 // Manages creation and swapping of render views. |
489 RenderViewHostManager render_manager_; | 493 RenderViewHostManager render_manager_; |
490 | 494 |
491 // For testing, passed to new RenderViewHost managers. | 495 // For testing, passed to new RenderViewHost managers. |
492 RenderViewHostFactory* render_view_factory_; | 496 RenderViewHostFactory* render_view_factory_; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 net::LoadState load_state_; | 571 net::LoadState load_state_; |
568 std::wstring load_state_host_; | 572 std::wstring load_state_host_; |
569 | 573 |
570 // Non-null if we're displaying content for a web app. | 574 // Non-null if we're displaying content for a web app. |
571 scoped_refptr<WebApp> web_app_; | 575 scoped_refptr<WebApp> web_app_; |
572 | 576 |
573 DISALLOW_COPY_AND_ASSIGN(WebContents); | 577 DISALLOW_COPY_AND_ASSIGN(WebContents); |
574 }; | 578 }; |
575 | 579 |
576 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_ | 580 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_ |
OLD | NEW |