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

Unified Diff: chrome/browser/extensions/api/declarative_webrequest/request_stage.cc

Issue 552283003: Move request_stage.* to extensions/browser/api/declarative_webrequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/declarative_webrequest/request_stage.cc
diff --git a/chrome/browser/extensions/api/declarative_webrequest/request_stage.cc b/chrome/browser/extensions/api/declarative_webrequest/request_stage.cc
deleted file mode 100644
index 7e6e00e458b3c4dd7e7ee675fbe2d4534b7fc402..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/declarative_webrequest/request_stage.cc
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) 2012 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/browser/extensions/api/declarative_webrequest/request_stage.h"
-
-#include "base/basictypes.h"
-
-namespace extensions {
-
-const unsigned int kActiveStages = ON_BEFORE_REQUEST |
- ON_BEFORE_SEND_HEADERS |
- ON_HEADERS_RECEIVED |
- ON_AUTH_REQUIRED;
-
-// HighestBit<n> computes the highest bit of |n| in compile time, provided that
-// |n| is a positive compile-time constant.
-template <long unsigned int n>
-struct HighestBit {
- COMPILE_ASSERT(n > 0, argument_is_not_a_positive_compile_time_constant);
- enum { VALUE = HighestBit<(n >> 1)>::VALUE << 1 };
-};
-template <>
-struct HighestBit<1> {
- enum { VALUE = 1 };
-};
-
-const unsigned int kLastActiveStage = HighestBit<kActiveStages>::VALUE;
-
-} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698