OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_WEBSITE_SETTINGS_MOCK_PERMISSION_PROMPT_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_PROMPT_FACTORY_H_ |
6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_PROMPT_FACTORY_H_ | 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_PROMPT_FACTORY_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "chrome/browser/permissions/permission_request_manager.h" | 11 #include "chrome/browser/permissions/permission_request_manager.h" |
12 | 12 |
13 class Browser; | |
14 class MockPermissionPrompt; | 13 class MockPermissionPrompt; |
15 class PermissionPrompt; | 14 class PermissionPrompt; |
16 | 15 |
17 namespace content { | 16 namespace content { |
18 class WebContents; | 17 class WebContents; |
19 } | 18 } |
20 | 19 |
21 // Provides a skeleton class for both unit and browser testing when trying to | 20 // Provides a skeleton class for both unit and browser testing when trying to |
22 // test the bubble manager logic. Should not be used for anything that requires | 21 // test the bubble manager logic. Should not be used for anything that requires |
23 // actual UI. | 22 // actual UI. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 76 |
78 base::Closure show_bubble_quit_closure_; | 77 base::Closure show_bubble_quit_closure_; |
79 | 78 |
80 // The bubble manager that will be associated with this factory. | 79 // The bubble manager that will be associated with this factory. |
81 PermissionRequestManager* manager_; | 80 PermissionRequestManager* manager_; |
82 | 81 |
83 DISALLOW_COPY_AND_ASSIGN(MockPermissionPromptFactory); | 82 DISALLOW_COPY_AND_ASSIGN(MockPermissionPromptFactory); |
84 }; | 83 }; |
85 | 84 |
86 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_PROMPT_FACTORY_H_ | 85 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_PROMPT_FACTORY_H_ |
OLD | NEW |