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_UI_WEBUI_SYNC_FILE_SYSTEM_INTERNALS_DUMP_DATABASE_HANDLER
_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_FILE_SYSTEM_INTERNALS_DUMP_DATABASE_HANDLER
_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_SYNC_FILE_SYSTEM_INTERNALS_DUMP_DATABASE_HANDLER
_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_FILE_SYSTEM_INTERNALS_DUMP_DATABASE_HANDLER
_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "content/public/browser/web_ui_message_handler.h" | 9 #include "content/public/browser/web_ui_message_handler.h" |
10 | 10 |
11 class Profile; | 11 class Profile; |
12 | 12 |
13 namespace syncfs_internals { | 13 namespace syncfs_internals { |
14 | 14 |
15 class DumpDatabaseHandler : public content::WebUIMessageHandler { | 15 class DumpDatabaseHandler : public content::WebUIMessageHandler { |
16 public: | 16 public: |
17 explicit DumpDatabaseHandler(Profile* profile); | 17 explicit DumpDatabaseHandler(Profile* profile); |
18 virtual ~DumpDatabaseHandler(); | 18 ~DumpDatabaseHandler() override; |
19 | 19 |
20 // WebUIMessageHandler implementation. | 20 // WebUIMessageHandler implementation. |
21 virtual void RegisterMessages() override; | 21 void RegisterMessages() override; |
22 | 22 |
23 private: | 23 private: |
24 void GetDatabaseDump(const base::ListValue* args); | 24 void GetDatabaseDump(const base::ListValue* args); |
25 void DidGetDatabaseDump(const base::ListValue& list); | 25 void DidGetDatabaseDump(const base::ListValue& list); |
26 | 26 |
27 Profile* profile_; | 27 Profile* profile_; |
28 | 28 |
29 DISALLOW_COPY_AND_ASSIGN(DumpDatabaseHandler); | 29 DISALLOW_COPY_AND_ASSIGN(DumpDatabaseHandler); |
30 }; | 30 }; |
31 | 31 |
32 } // namespace syncfs_internals | 32 } // namespace syncfs_internals |
33 | 33 |
34 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_FILE_SYSTEM_INTERNALS_DUMP_DATABASE_HAND
LER_H_ | 34 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_FILE_SYSTEM_INTERNALS_DUMP_DATABASE_HAND
LER_H_ |
OLD | NEW |