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 CONTENT_SHELL_BROWSER_SHELL_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_MESSAGE_FILTER_H_ |
6 #define CONTENT_SHELL_BROWSER_SHELL_MESSAGE_FILTER_H_ | 6 #define CONTENT_SHELL_BROWSER_SHELL_MESSAGE_FILTER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 webkit_database::DatabaseTracker* database_tracker, | 32 webkit_database::DatabaseTracker* database_tracker, |
33 quota::QuotaManager* quota_manager, | 33 quota::QuotaManager* quota_manager, |
34 net::URLRequestContextGetter* request_context_getter); | 34 net::URLRequestContextGetter* request_context_getter); |
35 | 35 |
36 private: | 36 private: |
37 virtual ~ShellMessageFilter(); | 37 virtual ~ShellMessageFilter(); |
38 | 38 |
39 // BrowserMessageFilter implementation. | 39 // BrowserMessageFilter implementation. |
40 virtual void OverrideThreadForMessage(const IPC::Message& message, | 40 virtual void OverrideThreadForMessage(const IPC::Message& message, |
41 BrowserThread::ID* thread) OVERRIDE; | 41 BrowserThread::ID* thread) OVERRIDE; |
42 virtual bool OnMessageReceived(const IPC::Message& message, | 42 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
43 bool* message_was_ok) OVERRIDE; | |
44 | 43 |
45 void OnReadFileToString(const base::FilePath& local_file, | 44 void OnReadFileToString(const base::FilePath& local_file, |
46 std::string* contents); | 45 std::string* contents); |
47 void OnRegisterIsolatedFileSystem( | 46 void OnRegisterIsolatedFileSystem( |
48 const std::vector<base::FilePath>& absolute_filenames, | 47 const std::vector<base::FilePath>& absolute_filenames, |
49 std::string* filesystem_id); | 48 std::string* filesystem_id); |
50 void OnClearAllDatabases(); | 49 void OnClearAllDatabases(); |
51 void OnSetDatabaseQuota(int quota); | 50 void OnSetDatabaseQuota(int quota); |
52 void OnAcceptAllCookies(bool accept); | 51 void OnAcceptAllCookies(bool accept); |
53 void OnDeleteAllCookies(); | 52 void OnDeleteAllCookies(); |
54 | 53 |
55 int render_process_id_; | 54 int render_process_id_; |
56 | 55 |
57 webkit_database::DatabaseTracker* database_tracker_; | 56 webkit_database::DatabaseTracker* database_tracker_; |
58 quota::QuotaManager* quota_manager_; | 57 quota::QuotaManager* quota_manager_; |
59 net::URLRequestContextGetter* request_context_getter_; | 58 net::URLRequestContextGetter* request_context_getter_; |
60 | 59 |
61 DISALLOW_COPY_AND_ASSIGN(ShellMessageFilter); | 60 DISALLOW_COPY_AND_ASSIGN(ShellMessageFilter); |
62 }; | 61 }; |
63 | 62 |
64 } // namespace content | 63 } // namespace content |
65 | 64 |
66 #endif // CONTENT_SHELL_BROWSER_SHELL_MESSAGE_FILTER_H_ | 65 #endif // CONTENT_SHELL_BROWSER_SHELL_MESSAGE_FILTER_H_ |
OLD | NEW |