OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef EXTENSIONS_COMMON_AD_INJECTION_CONSTANTS_H_ | |
6 #define EXTENSIONS_COMMON_AD_INJECTION_CONSTANTS_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/basictypes.h" | |
11 | |
12 namespace extensions { | |
13 namespace ad_injection_constants { | |
14 | |
15 // The keys used when serializing arguments to activity action APIs. | |
16 namespace keys { | |
17 | |
18 extern const char kType[]; | |
19 extern const char kChildren[]; | |
20 extern const char kSrc[]; | |
21 extern const char kHref[]; | |
22 | |
23 } // namespace keys | |
24 | |
25 extern const char kHtmlIframeSrcApiName[]; | |
26 extern const char kHtmlEmbedSrcApiName[]; | |
27 extern const char kHtmlAnchorHrefApiName[]; | |
28 extern const char kAppendChildApiSuffix[]; | |
29 | |
30 extern const size_t kMaximumChildrenToCheck; | |
31 extern const size_t kMaximumDepthToCheck; | |
32 | |
33 // Returns true if the given |api| can potentially inject ads, and should | |
34 // therefore be examined. | |
35 bool ApiCanInjectAds(const std::string& api); | |
36 | |
37 } // namespace ad_injection_constants | |
38 } // namespace extensions | |
39 | |
40 #endif // EXTENSIONS_COMMON_AD_INJECTION_CONSTANTS_H_ | |
OLD | NEW |