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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_REQUEST_STAGES_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_REQUEST_STAGES_H_
7 #pragma once
8
9 namespace extensions {
10
11 // The stages of the web request during which a condition can be tested and
12 // an action can be applied. This is required because for example the response
13 // headers cannot be tested before a request has been sent.
14 enum RequestStages {
15 ON_BEFORE_REQUEST = 1 << 0,
16 ON_BEFORE_SEND_HEADERS = 1 << 1,
17 ON_SEND_HEADERS = 1 << 2,
18 ON_HEADERS_RECEIVED = 1 << 3,
19 ON_AUTH_REQUIRED = 1 << 4,
20 ON_BEFORE_REDIRECT = 1 << 5,
21 ON_RESPONSE_STARTED = 1 << 6,
22 ON_COMPLETED = 1 << 7,
23 ON_ERROR = 1 << 8
24 };
25
26 } // namespace extensions
27
28 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_REQUEST_STAGES_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698