Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: chrome/browser/chromeos/login/web_page_view.h

Issue 9146028: Define the public interface for content browser SiteInstance. This interface is implemented by th... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_CHROMEOS_LOGIN_WEB_PAGE_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WEB_PAGE_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEB_PAGE_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEB_PAGE_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/timer.h" 12 #include "base/timer.h"
13 #include "chrome/browser/ui/views/dom_view.h" 13 #include "chrome/browser/ui/views/dom_view.h"
14 #include "ui/views/view.h" 14 #include "ui/views/view.h"
15 15
16 class Profile; 16 class Profile;
17 17
18 namespace content { 18 namespace content {
19 class SiteInstance;
19 class WebContentsDelegate; 20 class WebContentsDelegate;
20 } 21 }
21 22
22 namespace views { 23 namespace views {
23 class Label; 24 class Label;
24 class Throbber; 25 class Throbber;
25 } 26 }
26 27
27 namespace chromeos { 28 namespace chromeos {
28 29
(...skipping 14 matching lines...) Expand all
43 class WebPageView : public views::View { 44 class WebPageView : public views::View {
44 public: 45 public:
45 WebPageView(); 46 WebPageView();
46 virtual ~WebPageView(); 47 virtual ~WebPageView();
47 48
48 // Initialize view layout. 49 // Initialize view layout.
49 void Init(); 50 void Init();
50 51
51 // Initialize the DOM view, creating the contents. This should be 52 // Initialize the DOM view, creating the contents. This should be
52 // called once the view has been added to a container. 53 // called once the view has been added to a container.
53 void InitDOM(Profile* profile, SiteInstance* site_instance); 54 void InitDOM(Profile* profile, content::SiteInstance* site_instance);
54 55
55 // Loads the given URL into the page. 56 // Loads the given URL into the page.
56 // You must have previously called Init() and SetWebContentsDelegate. 57 // You must have previously called Init() and SetWebContentsDelegate.
57 void LoadURL(const GURL& url); 58 void LoadURL(const GURL& url);
58 59
59 // Sets delegate for tab contents changes. 60 // Sets delegate for tab contents changes.
60 void SetWebContentsDelegate(content::WebContentsDelegate* delegate); 61 void SetWebContentsDelegate(content::WebContentsDelegate* delegate);
61 62
62 // Stops throbber and shows page content (starts renderer_timer_ for that). 63 // Stops throbber and shows page content (starts renderer_timer_ for that).
63 void ShowPageContent(); 64 void ShowPageContent();
(...skipping 22 matching lines...) Expand all
86 87
87 // Timer used before toggling loaded page visibility. 88 // Timer used before toggling loaded page visibility.
88 base::OneShotTimer<WebPageView> stop_timer_; 89 base::OneShotTimer<WebPageView> stop_timer_;
89 90
90 DISALLOW_COPY_AND_ASSIGN(WebPageView); 91 DISALLOW_COPY_AND_ASSIGN(WebPageView);
91 }; 92 };
92 93
93 } // namespace chromeos 94 } // namespace chromeos
94 95
95 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEB_PAGE_VIEW_H_ 96 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEB_PAGE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/registration_screen.cc ('k') | chrome/browser/chromeos/login/web_page_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698