| Index: chrome/common/extensions/ad_injection_constants.cc
|
| diff --git a/chrome/common/extensions/ad_injection_constants.cc b/chrome/common/extensions/ad_injection_constants.cc
|
| deleted file mode 100644
|
| index 6cdea9733e2ef21ec8106552dfa62e75e5d8d415..0000000000000000000000000000000000000000
|
| --- a/chrome/common/extensions/ad_injection_constants.cc
|
| +++ /dev/null
|
| @@ -1,39 +0,0 @@
|
| -// Copyright 2014 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#include "chrome/common/extensions/ad_injection_constants.h"
|
| -
|
| -#include "base/strings/string_util.h"
|
| -
|
| -namespace extensions {
|
| -namespace ad_injection_constants {
|
| -
|
| -namespace keys {
|
| -
|
| -const char kType[] = "type";
|
| -const char kChildren[] = "children";
|
| -const char kSrc[] = "src";
|
| -const char kHref[] = "href";
|
| -
|
| -} // namespace keys
|
| -
|
| -const char kHtmlIframeSrcApiName[] = "HTMLIFrameElement.src";
|
| -const char kHtmlEmbedSrcApiName[] = "HTMLEmbedElement.src";
|
| -const char kAppendChildApiSuffix[] = "appendChild";
|
| -
|
| -// The maximum number of children to check when we examine a newly-added
|
| -// element.
|
| -extern const size_t kMaximumChildrenToCheck = 10u;
|
| -
|
| -// The maximum depth to check when we examine a newly-added element.
|
| -extern const size_t kMaximumDepthToCheck = 5u;
|
| -
|
| -bool ApiCanInjectAds(const char* api) {
|
| - return api == kHtmlIframeSrcApiName ||
|
| - api == kHtmlEmbedSrcApiName ||
|
| - EndsWith(api, kAppendChildApiSuffix, true /* case sensitive */);
|
| -}
|
| -
|
| -} // namespace ad_injection_constants
|
| -} // namespace extensions
|
|
|