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

Side by Side Diff: components/security_interstitials/core/controller_client.h

Issue 1467063002: Introduce the ChromeControllerClient class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_ 5 #ifndef COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_
6 #define COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_ 6 #define COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 12
13 class GURL; 13 class GURL;
14 class PrefService; 14 class PrefService;
15 15
16 namespace security_interstitials { 16 namespace security_interstitials {
17 17
18 // Constants used to communicate with the JavaScript.
19 extern const char kBoxChecked[];
20 extern const char kDisplayCheckBox[];
21 extern const char kOptInLink[];
22 extern const char kPrivacyLinkHtml[];
23
18 class MetricsHelper; 24 class MetricsHelper;
19 25
20 // Provides methods for handling commands from the user, which requires some 26 // Provides methods for handling commands from the user, which requires some
21 // embedder-specific abstraction. 27 // embedder-specific abstraction.
22 class ControllerClient { 28 class ControllerClient {
23 public: 29 public:
24 // These represent the commands sent from the interstitial JavaScript. 30 // These represent the commands sent from the interstitial JavaScript.
25 // DO NOT reorder or change these without also changing the JavaScript! 31 // DO NOT reorder or change these without also changing the JavaScript!
26 // See components/security_interstitials/core/browser/resources/ 32 // See components/security_interstitials/core/browser/resources/
27 enum SecurityInterstitialCommands { 33 enum SecurityInterstitialCommands {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 73
68 private: 74 private:
69 scoped_ptr<MetricsHelper> metrics_helper_; 75 scoped_ptr<MetricsHelper> metrics_helper_;
70 76
71 DISALLOW_COPY_AND_ASSIGN(ControllerClient); 77 DISALLOW_COPY_AND_ASSIGN(ControllerClient);
72 }; 78 };
73 79
74 } // namespace security_interstitials 80 } // namespace security_interstitials
75 81
76 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_ 82 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698