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

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

Issue 9820003: Implementation of beginning of Declarative Web Request API backend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pacify clang Created 8 years, 9 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_stages.h
diff --git a/chrome/browser/extensions/api/declarative_webrequest/request_stages.h b/chrome/browser/extensions/api/declarative_webrequest/request_stages.h
new file mode 100644
index 0000000000000000000000000000000000000000..2e539b3b077b507b6270b673f49c5eae131e6a24
--- /dev/null
+++ b/chrome/browser/extensions/api/declarative_webrequest/request_stages.h
@@ -0,0 +1,28 @@
+// 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_STAGES_H_
+#define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_REQUEST_STAGES_H_
+#pragma once
+
+namespace extensions {
+
+// The stages of the web request during which a condition can be tested and
+// an action can be applied. This is required because for example the response
+// headers cannot be tested before a request has been sent.
+enum RequestStages {
+ 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
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_REQUEST_STAGES_H_

Powered by Google App Engine
This is Rietveld 408576698