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

Side by Side Diff: chrome/browser/extensions/app_notify_channel_ui_impl.h

Issue 10830036: Moved the AppNotification system into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest master for cq Created 8 years, 4 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
OLDNEW
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 CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_UI_IMPL_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_UI_IMPL_H_
6 #define CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_UI_IMPL_H_ 6 #define CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_UI_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "chrome/browser/extensions/app_notify_channel_ui.h" 12 #include "chrome/browser/extensions/app_notify_channel_ui.h"
13 #include "chrome/browser/sync/profile_sync_service_observer.h" 13 #include "chrome/browser/sync/profile_sync_service_observer.h"
14 14
15 class Profile; 15 class Profile;
16 class TabContents; 16 class TabContents;
17 17
18 namespace extensions {
19
18 class AppNotifyChannelUIImpl : public AppNotifyChannelUI, 20 class AppNotifyChannelUIImpl : public AppNotifyChannelUI,
19 public ProfileSyncServiceObserver { 21 public ProfileSyncServiceObserver {
20 public: 22 public:
21 AppNotifyChannelUIImpl(Profile* profile, 23 AppNotifyChannelUIImpl(Profile* profile,
22 TabContents* tab_contents, 24 TabContents* tab_contents,
23 const std::string& app_name, 25 const std::string& app_name,
24 AppNotifyChannelUI::UIType ui_type); 26 AppNotifyChannelUI::UIType ui_type);
25 virtual ~AppNotifyChannelUIImpl(); 27 virtual ~AppNotifyChannelUIImpl();
26 28
27 // AppNotifyChannelUI. 29 // AppNotifyChannelUI.
(...skipping 28 matching lines...) Expand all
56 // ProfileSyncServiceObserver::OnStateChanged callback many times 58 // ProfileSyncServiceObserver::OnStateChanged callback many times
57 // after ShowLoginDialog is called and before the wizard is 59 // after ShowLoginDialog is called and before the wizard is
58 // actually visible to the user. So we record if the wizard was 60 // actually visible to the user. So we record if the wizard was
59 // shown to user and then wait for wizard to get dismissed. 61 // shown to user and then wait for wizard to get dismissed.
60 // See crbug.com/101842. 62 // See crbug.com/101842.
61 bool wizard_shown_to_user_; 63 bool wizard_shown_to_user_;
62 64
63 DISALLOW_COPY_AND_ASSIGN(AppNotifyChannelUIImpl); 65 DISALLOW_COPY_AND_ASSIGN(AppNotifyChannelUIImpl);
64 }; 66 };
65 67
68 } // namespace extensions
69
66 #endif // CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_UI_IMPL_H_ 70 #endif // CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_UI_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/app_notify_channel_ui_android.cc ('k') | chrome/browser/extensions/app_notify_channel_ui_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698