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

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

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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/declarative_webrequest/request_stage.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/declarative_webrequest/request_stage.h
diff --git a/chrome/browser/extensions/api/declarative_webrequest/request_stage.h b/chrome/browser/extensions/api/declarative_webrequest/request_stage.h
deleted file mode 100644
index d6c5cafca8e652eb9ff4933b28c7f6fbc04a4c50..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/declarative_webrequest/request_stage.h
+++ /dev/null
@@ -1,36 +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.
-
-#ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_REQUEST_STAGE_H_
-#define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_REQUEST_STAGE_H_
-
-namespace extensions {
-
-// The stages of the web request during which a condition could be tested and
-// an action could be applied. This is required because for example the response
-// headers cannot be tested before a request has been sent. Note that currently
-// not all stages are supported in declarative Web Request, only those marked
-// as "active" in |kActiveStages| below.
-enum RequestStage {
- ON_BEFORE_REQUEST = 1 << 0,
- ON_BEFORE_SEND_HEADERS = 1 << 1,
- ON_SEND_HEADERS = 1 << 2,
- ON_HEADERS_RECEIVED = 1 << 3,
- ON_AUTH_REQUIRED = 1 << 4,
- ON_BEFORE_REDIRECT = 1 << 5,
- ON_RESPONSE_STARTED = 1 << 6,
- ON_COMPLETED = 1 << 7,
- ON_ERROR = 1 << 8
-};
-
-// The bitmap with active stages.
-extern const unsigned int kActiveStages;
-
-// The highest bit in |kActiveStages|. This allows to iterate over all active
-// stages in a "for" loop.
-extern const unsigned int kLastActiveStage;
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_REQUEST_STAGE_H_
« no previous file with comments | « no previous file | chrome/browser/extensions/api/declarative_webrequest/request_stage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698