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

Side by Side Diff: extensions/common/ad_injection_constants.h

Issue 270623005: Update ActivityLog detection to use previous values, hrefs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 EXTENSIONS_COMMON_AD_INJECTION_CONSTANTS_H_ 5 #ifndef EXTENSIONS_COMMON_AD_INJECTION_CONSTANTS_H_
6 #define EXTENSIONS_COMMON_AD_INJECTION_CONSTANTS_H_ 6 #define EXTENSIONS_COMMON_AD_INJECTION_CONSTANTS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 namespace ad_injection_constants { 13 namespace ad_injection_constants {
14 14
15 // The keys used when serializing arguments to activity action APIs. 15 // The keys used when serializing arguments to activity action APIs.
16 namespace keys { 16 namespace keys {
17 17
18 extern const char kType[]; 18 extern const char kType[];
19 extern const char kChildren[]; 19 extern const char kChildren[];
20 extern const char kSrc[]; 20 extern const char kSrc[];
21 extern const char kHref[]; 21 extern const char kHref[];
22 22
23 } // namespace keys 23 } // namespace keys
24 24
25 extern const char kHtmlIframeSrcApiName[]; 25 extern const char kHtmlIframeSrcApiName[];
26 extern const char kHtmlEmbedSrcApiName[]; 26 extern const char kHtmlEmbedSrcApiName[];
27 extern const char kHtmlAnchorHrefApiName[];
27 extern const char kAppendChildApiSuffix[]; 28 extern const char kAppendChildApiSuffix[];
28 29
29 extern const size_t kMaximumChildrenToCheck; 30 extern const size_t kMaximumChildrenToCheck;
30 extern const size_t kMaximumDepthToCheck; 31 extern const size_t kMaximumDepthToCheck;
31 32
32 // Returns true if the given |api| can potentially inject ads, and should 33 // Returns true if the given |api| can potentially inject ads, and should
33 // therefore be examined. 34 // therefore be examined.
34 bool ApiCanInjectAds(const std::string& api); 35 bool ApiCanInjectAds(const std::string& api);
35 36
36 } // namespace ad_injection_constants 37 } // namespace ad_injection_constants
37 } // namespace extensions 38 } // namespace extensions
38 39
39 #endif // EXTENSIONS_COMMON_AD_INJECTION_CONSTANTS_H_ 40 #endif // EXTENSIONS_COMMON_AD_INJECTION_CONSTANTS_H_
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/activity_log/ad_injection/content_script.js ('k') | extensions/common/ad_injection_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698