Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Side by Side Diff: content/shell/test_runner/mock_content_settings_client.h

Issue 2786673002: Separate ContentSettingsClient out from LocalFrameClient (Closed)
Patch Set: added class-level comment Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_TEST_RUNNER_MOCK_CONTENT_SETTINGS_CLIENT_H_ 5 #ifndef CONTENT_SHELL_TEST_RUNNER_MOCK_CONTENT_SETTINGS_CLIENT_H_
6 #define CONTENT_SHELL_TEST_RUNNER_MOCK_CONTENT_SETTINGS_CLIENT_H_ 6 #define CONTENT_SHELL_TEST_RUNNER_MOCK_CONTENT_SETTINGS_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "third_party/WebKit/public/web/WebContentSettingsClient.h" 9 #include "third_party/WebKit/public/platform/WebContentSettingsClient.h"
10 10
11 namespace test_runner { 11 namespace test_runner {
12 12
13 class LayoutTestRuntimeFlags; 13 class LayoutTestRuntimeFlags;
14 class WebTestDelegate; 14 class WebTestDelegate;
15 15
16 class MockContentSettingsClient : public blink::WebContentSettingsClient { 16 class MockContentSettingsClient : public blink::WebContentSettingsClient {
17 public: 17 public:
18 // Caller has to guarantee that |layout_test_runtime_flags| lives longer 18 // Caller has to guarantee that |layout_test_runtime_flags| lives longer
19 // than the MockContentSettingsClient being constructed here. 19 // than the MockContentSettingsClient being constructed here.
(...skipping 20 matching lines...) Expand all
40 WebTestDelegate* delegate_; 40 WebTestDelegate* delegate_;
41 41
42 LayoutTestRuntimeFlags* flags_; 42 LayoutTestRuntimeFlags* flags_;
43 43
44 DISALLOW_COPY_AND_ASSIGN(MockContentSettingsClient); 44 DISALLOW_COPY_AND_ASSIGN(MockContentSettingsClient);
45 }; 45 };
46 46
47 } // namespace test_runner 47 } // namespace test_runner
48 48
49 #endif // CONTENT_SHELL_TEST_RUNNER_MOCK_CONTENT_SETTINGS_CLIENT_H_ 49 #endif // CONTENT_SHELL_TEST_RUNNER_MOCK_CONTENT_SETTINGS_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/renderer/content_settings_observer.h ('k') | third_party/WebKit/Source/core/dom/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698