OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_API_LOG_PRIVATE_LOG_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_LOG_PRIVATE_LOG_PRIVATE_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_LOG_PRIVATE_LOG_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_LOG_PRIVATE_LOG_PRIVATE_API_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 }; | 78 }; |
79 | 79 |
80 class LogPrivateGetHistoricalFunction : public AsyncExtensionFunction { | 80 class LogPrivateGetHistoricalFunction : public AsyncExtensionFunction { |
81 public: | 81 public: |
82 LogPrivateGetHistoricalFunction(); | 82 LogPrivateGetHistoricalFunction(); |
83 DECLARE_EXTENSION_FUNCTION("logPrivate.getHistorical", | 83 DECLARE_EXTENSION_FUNCTION("logPrivate.getHistorical", |
84 LOGPRIVATE_GETHISTORICAL); | 84 LOGPRIVATE_GETHISTORICAL); |
85 | 85 |
86 protected: | 86 protected: |
87 virtual ~LogPrivateGetHistoricalFunction(); | 87 virtual ~LogPrivateGetHistoricalFunction(); |
88 virtual bool RunImpl() OVERRIDE; | 88 virtual bool RunAsync() OVERRIDE; |
89 | 89 |
90 private: | 90 private: |
91 void OnSystemLogsLoaded(scoped_ptr<system_logs::SystemLogsResponse> sys_info); | 91 void OnSystemLogsLoaded(scoped_ptr<system_logs::SystemLogsResponse> sys_info); |
92 | 92 |
93 scoped_ptr<FilterHandler> filter_handler_; | 93 scoped_ptr<FilterHandler> filter_handler_; |
94 | 94 |
95 DISALLOW_COPY_AND_ASSIGN(LogPrivateGetHistoricalFunction); | 95 DISALLOW_COPY_AND_ASSIGN(LogPrivateGetHistoricalFunction); |
96 }; | 96 }; |
97 | 97 |
98 class LogPrivateStartNetInternalsWatchFunction | 98 class LogPrivateStartNetInternalsWatchFunction |
(...skipping 22 matching lines...) Expand all Loading... |
121 virtual ~LogPrivateStopNetInternalsWatchFunction(); | 121 virtual ~LogPrivateStopNetInternalsWatchFunction(); |
122 virtual bool RunSync() OVERRIDE; | 122 virtual bool RunSync() OVERRIDE; |
123 | 123 |
124 private: | 124 private: |
125 DISALLOW_COPY_AND_ASSIGN(LogPrivateStopNetInternalsWatchFunction); | 125 DISALLOW_COPY_AND_ASSIGN(LogPrivateStopNetInternalsWatchFunction); |
126 }; | 126 }; |
127 | 127 |
128 } // namespace extensions | 128 } // namespace extensions |
129 | 129 |
130 #endif // CHROME_BROWSER_EXTENSIONS_API_LOG_PRIVATE_LOG_PRIVATE_API_H_ | 130 #endif // CHROME_BROWSER_EXTENSIONS_API_LOG_PRIVATE_LOG_PRIVATE_API_H_ |
OLD | NEW |