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

Side by Side Diff: chrome/common/net/url_request_intercept_job.h

Issue 6639002: Put Filter into namespace net. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More copyright updates Created 9 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
« no previous file with comments | « no previous file | chrome/common/net/url_request_intercept_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_NET_URL_REQUEST_INTERCEPT_JOB_H_ 5 #ifndef CHROME_COMMON_NET_URL_REQUEST_INTERCEPT_JOB_H_
6 #define CHROME_COMMON_NET_URL_REQUEST_INTERCEPT_JOB_H_ 6 #define CHROME_COMMON_NET_URL_REQUEST_INTERCEPT_JOB_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/scoped_ptr.h" 11 #include "base/scoped_ptr.h"
(...skipping 26 matching lines...) Expand all
38 void OnReadCompleted(int bytes_read); 38 void OnReadCompleted(int bytes_read);
39 39
40 // net::URLRequestJob 40 // net::URLRequestJob
41 virtual void Start(); 41 virtual void Start();
42 virtual void Kill(); 42 virtual void Kill();
43 virtual bool GetMimeType(std::string* mime_type) const; 43 virtual bool GetMimeType(std::string* mime_type) const;
44 virtual bool GetCharset(std::string* charset); 44 virtual bool GetCharset(std::string* charset);
45 virtual void GetResponseInfo(net::HttpResponseInfo* info); 45 virtual void GetResponseInfo(net::HttpResponseInfo* info);
46 virtual int GetResponseCode() const; 46 virtual int GetResponseCode() const;
47 virtual bool GetContentEncodings( 47 virtual bool GetContentEncodings(
48 std::vector<Filter::FilterType>* encoding_types); 48 std::vector<net::Filter::FilterType>* encoding_types);
49 virtual bool IsRedirectResponse(GURL* location, int* http_status_code); 49 virtual bool IsRedirectResponse(GURL* location, int* http_status_code);
50 50
51 // NotificationObserver 51 // NotificationObserver
52 virtual void Observe(NotificationType type, 52 virtual void Observe(NotificationType type,
53 const NotificationSource& source, 53 const NotificationSource& source,
54 const NotificationDetails& details); 54 const NotificationDetails& details);
55 55
56 protected: 56 protected:
57 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read); 57 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read);
58 58
59 private: 59 private:
60 void StartAsync(); 60 void StartAsync();
61 void DetachPlugin(); 61 void DetachPlugin();
62 62
63 NotificationRegistrar registrar_; 63 NotificationRegistrar registrar_;
64 scoped_ptr<ScopableCPRequest> cprequest_; 64 scoped_ptr<ScopableCPRequest> cprequest_;
65 ChromePluginLib* plugin_; 65 ChromePluginLib* plugin_;
66 net::IOBuffer* read_buffer_; 66 net::IOBuffer* read_buffer_;
67 int read_buffer_size_; 67 int read_buffer_size_;
68 ScopedRunnableMethodFactory<URLRequestInterceptJob> method_factory_; 68 ScopedRunnableMethodFactory<URLRequestInterceptJob> method_factory_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(URLRequestInterceptJob); 70 DISALLOW_COPY_AND_ASSIGN(URLRequestInterceptJob);
71 }; 71 };
72 72
73 #endif // CHROME_COMMON_NET_URL_REQUEST_INTERCEPT_JOB_H_ 73 #endif // CHROME_COMMON_NET_URL_REQUEST_INTERCEPT_JOB_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/common/net/url_request_intercept_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698