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

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

Issue 247953008: Extend DOMActivityLogger interface for upcoming change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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 CHROME_COMMON_EXTENSIONS_AD_INJECTION_CONSTANTS_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_AD_INJECTION_CONSTANTS_H_
6 #define CHROME_COMMON_EXTENSIONS_AD_INJECTION_CONSTANTS_H_ 6 #define CHROME_COMMON_EXTENSIONS_AD_INJECTION_CONSTANTS_H_
7 7
8 #include <string>
9
8 #include "base/basictypes.h" 10 #include "base/basictypes.h"
9 11
10 namespace extensions { 12 namespace extensions {
11 namespace ad_injection_constants { 13 namespace ad_injection_constants {
12 14
13 // The keys used when serializing arguments to activity action APIs. 15 // The keys used when serializing arguments to activity action APIs.
14 namespace keys { 16 namespace keys {
15 17
16 extern const char kType[]; 18 extern const char kType[];
17 extern const char kChildren[]; 19 extern const char kChildren[];
18 extern const char kSrc[]; 20 extern const char kSrc[];
19 extern const char kHref[]; 21 extern const char kHref[];
20 22
21 } // namespace keys 23 } // namespace keys
22 24
23 extern const char kHtmlIframeSrcApiName[]; 25 extern const char kHtmlIframeSrcApiName[];
24 extern const char kHtmlEmbedSrcApiName[]; 26 extern const char kHtmlEmbedSrcApiName[];
25 extern const char kAppendChildApiSuffix[]; 27 extern const char kAppendChildApiSuffix[];
26 28
27 extern const size_t kMaximumChildrenToCheck; 29 extern const size_t kMaximumChildrenToCheck;
28 extern const size_t kMaximumDepthToCheck; 30 extern const size_t kMaximumDepthToCheck;
29 31
30 // Returns true if the given |api| can potentially inject ads, and should 32 // Returns true if the given |api| can potentially inject ads, and should
31 // therefore be examined. 33 // therefore be examined.
32 bool ApiCanInjectAds(const char* api); 34 bool ApiCanInjectAds(const std::string& api);
33 35
34 } // namespace ad_injection_constants 36 } // namespace ad_injection_constants
35 } // namespace extensions 37 } // namespace extensions
36 38
37 #endif // CHROME_COMMON_EXTENSIONS_AD_INJECTION_CONSTANTS_H_ 39 #endif // CHROME_COMMON_EXTENSIONS_AD_INJECTION_CONSTANTS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/ad_injection_constants.cc » ('j') | chrome/renderer/extensions/dom_activity_logger.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698