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_LAYOUT_TEST_LAYOUT_TEST_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_MESSAGE_FILTER_H_ |
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_MESSAGE_FILTER_H_ | 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_MESSAGE_FILTER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "components/permission/public/interfaces/permission_status.mojom.h" |
13 #include "content/public/browser/browser_message_filter.h" | 14 #include "content/public/browser/browser_message_filter.h" |
14 #include "content/public/common/permission_status.mojom.h" | |
15 | 15 |
16 class GURL; | 16 class GURL; |
17 | 17 |
18 namespace net { | 18 namespace net { |
19 class URLRequestContextGetter; | 19 class URLRequestContextGetter; |
20 } | 20 } |
21 | 21 |
22 namespace storage { | 22 namespace storage { |
23 class QuotaManager; | 23 class QuotaManager; |
24 } | 24 } |
(...skipping 29 matching lines...) Expand all Loading... |
54 void OnGrantWebNotificationPermission(const GURL& origin, | 54 void OnGrantWebNotificationPermission(const GURL& origin, |
55 bool permission_granted); | 55 bool permission_granted); |
56 void OnClearWebNotificationPermissions(); | 56 void OnClearWebNotificationPermissions(); |
57 void OnSimulateWebNotificationClick(const std::string& title, | 57 void OnSimulateWebNotificationClick(const std::string& title, |
58 int action_index); | 58 int action_index); |
59 void OnSetPushMessagingPermission(const GURL& origin, bool allowed); | 59 void OnSetPushMessagingPermission(const GURL& origin, bool allowed); |
60 void OnClearPushMessagingPermissions(); | 60 void OnClearPushMessagingPermissions(); |
61 void OnAcceptAllCookies(bool accept); | 61 void OnAcceptAllCookies(bool accept); |
62 void OnDeleteAllCookies(); | 62 void OnDeleteAllCookies(); |
63 void OnSetPermission(const std::string& name, | 63 void OnSetPermission(const std::string& name, |
64 PermissionStatus status, | 64 permission::Status status, |
65 const GURL& origin, | 65 const GURL& origin, |
66 const GURL& embedding_origin); | 66 const GURL& embedding_origin); |
67 void OnResetPermissions(); | 67 void OnResetPermissions(); |
68 void OnSetBluetoothAdapter(const std::string& name); | 68 void OnSetBluetoothAdapter(const std::string& name); |
69 | 69 |
70 int render_process_id_; | 70 int render_process_id_; |
71 | 71 |
72 storage::DatabaseTracker* database_tracker_; | 72 storage::DatabaseTracker* database_tracker_; |
73 storage::QuotaManager* quota_manager_; | 73 storage::QuotaManager* quota_manager_; |
74 net::URLRequestContextGetter* request_context_getter_; | 74 net::URLRequestContextGetter* request_context_getter_; |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(LayoutTestMessageFilter); | 76 DISALLOW_COPY_AND_ASSIGN(LayoutTestMessageFilter); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace content | 79 } // namespace content |
80 | 80 |
81 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_MESSAGE_FILTER_H_ | 81 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_MESSAGE_FILTER_H_ |
OLD | NEW |