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

Side by Side Diff: chrome/browser/chromeos/power/extension_event_observer.h

Issue 1547093002: Switch to standard integer types in chrome/browser/chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_POWER_EXTENSION_EVENT_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POWER_EXTENSION_EVENT_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_POWER_EXTENSION_EVENT_OBSERVER_H_ 6 #define CHROME_BROWSER_CHROMEOS_POWER_EXTENSION_EVENT_OBSERVER_H_
7 7
8 #include <stdint.h>
9
8 #include <set> 10 #include <set>
9 #include <string> 11 #include <string>
10 12
11 #include "base/callback.h" 13 #include "base/callback.h"
12 #include "base/cancelable_callback.h" 14 #include "base/cancelable_callback.h"
13 #include "base/containers/scoped_ptr_hash_map.h" 15 #include "base/containers/scoped_ptr_hash_map.h"
14 #include "base/macros.h" 16 #include "base/macros.h"
15 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
17 #include "base/time/time.h" 19 #include "base/time/time.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 void OnBackgroundHostCreated(extensions::ExtensionHost* host) override; 83 void OnBackgroundHostCreated(extensions::ExtensionHost* host) override;
82 84
83 // extensions::ExtensionHostObserver overrides. 85 // extensions::ExtensionHostObserver overrides.
84 void OnExtensionHostDestroyed(const extensions::ExtensionHost* host) override; 86 void OnExtensionHostDestroyed(const extensions::ExtensionHost* host) override;
85 void OnBackgroundEventDispatched(const extensions::ExtensionHost* host, 87 void OnBackgroundEventDispatched(const extensions::ExtensionHost* host,
86 const std::string& event_name, 88 const std::string& event_name,
87 int event_id) override; 89 int event_id) override;
88 void OnBackgroundEventAcked(const extensions::ExtensionHost* host, 90 void OnBackgroundEventAcked(const extensions::ExtensionHost* host,
89 int event_id) override; 91 int event_id) override;
90 void OnNetworkRequestStarted(const extensions::ExtensionHost* host, 92 void OnNetworkRequestStarted(const extensions::ExtensionHost* host,
91 uint64 request_id) override; 93 uint64_t request_id) override;
92 void OnNetworkRequestDone(const extensions::ExtensionHost* host, 94 void OnNetworkRequestDone(const extensions::ExtensionHost* host,
93 uint64 request_id) override; 95 uint64_t request_id) override;
94 96
95 // PowerManagerClient::Observer overrides. 97 // PowerManagerClient::Observer overrides.
96 void SuspendImminent() override; 98 void SuspendImminent() override;
97 void DarkSuspendImminent() override; 99 void DarkSuspendImminent() override;
98 void SuspendDone(const base::TimeDelta& duration) override; 100 void SuspendDone(const base::TimeDelta& duration) override;
99 101
100 private: 102 private:
101 friend class TestApi; 103 friend class TestApi;
102 104
103 // Called when a new profile is created or destroyed. 105 // Called when a new profile is created or destroyed.
(...skipping 23 matching lines...) Expand all
127 content::NotificationRegistrar registrar_; 129 content::NotificationRegistrar registrar_;
128 130
129 base::WeakPtrFactory<ExtensionEventObserver> weak_factory_; 131 base::WeakPtrFactory<ExtensionEventObserver> weak_factory_;
130 132
131 DISALLOW_COPY_AND_ASSIGN(ExtensionEventObserver); 133 DISALLOW_COPY_AND_ASSIGN(ExtensionEventObserver);
132 }; 134 };
133 135
134 } // namespace chromeos 136 } // namespace chromeos
135 137
136 #endif // CHROME_BROWSER_CHROMEOS_POWER_EXTENSION_EVENT_OBSERVER_H_ 138 #endif // CHROME_BROWSER_CHROMEOS_POWER_EXTENSION_EVENT_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/power/cpu_data_collector.cc ('k') | chrome/browser/chromeos/power/extension_event_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698