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

Side by Side Diff: chrome/browser/notifications/arc_application_notifier_source_chromeos.h

Issue 2102433002: Filter out ARC notifiers that are not shown in launcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_NOTIFICATIONS_ARC_APPLICATION_NOTIFIER_SOURCE_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_ARC_APPLICATION_NOTIFIER_SOURCE_CHROMEOS_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_ARC_APPLICATION_NOTIFIER_SOURCE_CHROMEOS_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_ARC_APPLICATION_NOTIFIER_SOURCE_CHROMEOS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "chrome/browser/notifications/notifier_source.h" 14 #include "chrome/browser/notifications/notifier_source.h"
15 #include "chrome/browser/ui/app_list/arc/arc_app_icon.h" 15 #include "chrome/browser/ui/app_list/arc/arc_app_icon.h"
16 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h" 16 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h"
17 17
18 class Profile; 18 class Profile;
19 19
20 namespace content { 20 namespace content {
21 class BrowserContext; 21 class BrowserContext;
22 } 22 }
23 23
24 namespace message_center { 24 namespace message_center {
25 struct Notifier; 25 struct Notifier;
26 } 26 }
27 27
28 namespace arc { 28 namespace arc {
29 29
30 // TODO(hirono): Observe enabled flag change and notify it to message center.
Junichi Uekawa 2016/06/27 09:17:08 this change is unrelated to this?
31 class ArcApplicationNotifierSourceChromeOS : public NotifierSource, 30 class ArcApplicationNotifierSourceChromeOS : public NotifierSource,
32 public ArcAppIcon::Observer, 31 public ArcAppIcon::Observer,
33 public ArcAppListPrefs::Observer { 32 public ArcAppListPrefs::Observer {
34 public: 33 public:
35 explicit ArcApplicationNotifierSourceChromeOS( 34 explicit ArcApplicationNotifierSourceChromeOS(
36 NotifierSource::Observer* observer); 35 NotifierSource::Observer* observer);
37 36
38 ~ArcApplicationNotifierSourceChromeOS() override; 37 ~ArcApplicationNotifierSourceChromeOS() override;
39 38
40 // TODO(hirono): Rewrite the function with new API to fetch package list. 39 // TODO(hirono): Rewrite the function with new API to fetch package list.
(...skipping 16 matching lines...) Expand all
57 56
58 NotifierSource::Observer* observer_; 57 NotifierSource::Observer* observer_;
59 std::vector<std::unique_ptr<ArcAppIcon>> icons_; 58 std::vector<std::unique_ptr<ArcAppIcon>> icons_;
60 std::map<std::string, std::string> package_to_app_ids_; 59 std::map<std::string, std::string> package_to_app_ids_;
61 Profile* last_profile_; 60 Profile* last_profile_;
62 }; 61 };
63 62
64 } // namespace arc 63 } // namespace arc
65 64
66 #endif // CHROME_BROWSER_NOTIFICATIONS_ARC_APPLICATION_NOTIFIER_SOURCE_CHROMEOS _H_ 65 #endif // CHROME_BROWSER_NOTIFICATIONS_ARC_APPLICATION_NOTIFIER_SOURCE_CHROMEOS _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698