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

Side by Side Diff: chrome/browser/chromeos/offline/offline_load_page.h

Issue 7259019: Move base/values.h into the base namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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_OFFLINE_OFFLINE_LOAD_PAGE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_OFFLINE_OFFLINE_LOAD_PAGE_H_
6 #define CHROME_BROWSER_CHROMEOS_OFFLINE_OFFLINE_LOAD_PAGE_H_ 6 #define CHROME_BROWSER_CHROMEOS_OFFLINE_OFFLINE_LOAD_PAGE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/task.h" 11 #include "base/task.h"
12 #include "chrome/browser/chromeos/network_state_notifier.h" 12 #include "chrome/browser/chromeos/network_state_notifier.h"
13 #include "chrome/browser/tab_contents/chrome_interstitial_page.h" 13 #include "chrome/browser/tab_contents/chrome_interstitial_page.h"
14 14
15 class DictionaryValue;
16 class Extension; 15 class Extension;
17 class TabContents; 16 class TabContents;
18 17
18 namespace base {
19 class DictionaryValue;
20 }
21
19 namespace chromeos { 22 namespace chromeos {
20 23
21 // OfflineLoadPage class shows the interstitial page that is shown 24 // OfflineLoadPage class shows the interstitial page that is shown
22 // when no network is available and hides when some network (either 25 // when no network is available and hides when some network (either
23 // one of wifi, 3g or ethernet) becomes available. 26 // one of wifi, 3g or ethernet) becomes available.
24 // It deletes itself when the interstitial page is closed. 27 // It deletes itself when the interstitial page is closed.
25 class OfflineLoadPage : public ChromeInterstitialPage { 28 class OfflineLoadPage : public ChromeInterstitialPage {
26 public: 29 public:
27 // A delegate class that is called when the interstitinal page 30 // A delegate class that is called when the interstitinal page
28 // is closed. 31 // is closed.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 65
63 // Overrides ChromeInterstitialPage's Observe. 66 // Overrides ChromeInterstitialPage's Observe.
64 virtual void Observe(int type, 67 virtual void Observe(int type,
65 const NotificationSource& source, 68 const NotificationSource& source,
66 const NotificationDetails& details); 69 const NotificationDetails& details);
67 70
68 // Retrieves template strings of the offline page for app and 71 // Retrieves template strings of the offline page for app and
69 // normal site. 72 // normal site.
70 void GetAppOfflineStrings(const Extension* app, 73 void GetAppOfflineStrings(const Extension* app,
71 const string16& faield_url, 74 const string16& faield_url,
72 DictionaryValue* strings) const; 75 base::DictionaryValue* strings) const;
73 void GetNormalOfflineStrings(const string16& faield_url, 76 void GetNormalOfflineStrings(const string16& faield_url,
74 DictionaryValue* strings) const; 77 base::DictionaryValue* strings) const;
75 78
76 // True if there is a mobile network is available but 79 // True if there is a mobile network is available but
77 // has not been activated. 80 // has not been activated.
78 bool ShowActivationMessage(); 81 bool ShowActivationMessage();
79 82
80 Delegate* delegate_; 83 Delegate* delegate_;
81 NotificationRegistrar registrar_; 84 NotificationRegistrar registrar_;
82 85
83 // True if the proceed is chosen. 86 // True if the proceed is chosen.
84 bool proceeded_; 87 bool proceeded_;
85 ScopedRunnableMethodFactory<OfflineLoadPage> method_factory_; 88 ScopedRunnableMethodFactory<OfflineLoadPage> method_factory_;
86 89
87 bool in_test_; 90 bool in_test_;
88 91
89 DISALLOW_COPY_AND_ASSIGN(OfflineLoadPage); 92 DISALLOW_COPY_AND_ASSIGN(OfflineLoadPage);
90 }; 93 };
91 94
92 } // namespace chromeos 95 } // namespace chromeos
93 96
94 #endif // CHROME_BROWSER_CHROMEOS_OFFLINE_OFFLINE_LOAD_PAGE_H_ 97 #endif // CHROME_BROWSER_CHROMEOS_OFFLINE_OFFLINE_LOAD_PAGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/notifications/balloon_view_host.h ('k') | chrome/browser/chromeos/user_cros_settings_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698