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