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

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

Issue 5875005: Cleanup: Remove unneeded includes of notification_service.h.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: put includes in right order Created 10 years 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 | « chrome/common/extensions/extension_unpacker.cc ('k') | chrome/nacl/nacl_thread.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // This job type handles Chrome plugin network interception. When a plugin 5 // This job type handles Chrome plugin network interception. When a plugin
6 // wants to intercept a request, a job of this type is created. The intercept 6 // wants to intercept a request, a job of this type is created. The intercept
7 // job communicates with the plugin to retrieve the response headers and data. 7 // job communicates with the plugin to retrieve the response headers and data.
8 8
9 #include "chrome/common/net/url_request_intercept_job.h" 9 #include "chrome/common/net/url_request_intercept_job.h"
10 10
11 #include <vector>
12
11 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
12 #include "base/message_loop.h" 14 #include "base/message_loop.h"
13 #include "base/string_util.h" 15 #include "base/string_util.h"
14 #include "chrome/common/chrome_plugin_lib.h" 16 #include "chrome/common/chrome_plugin_lib.h"
15 #include "chrome/common/notification_service.h" 17 #include "chrome/common/notification_source.h"
16 #include "net/base/io_buffer.h" 18 #include "net/base/io_buffer.h"
17 #include "net/base/net_errors.h" 19 #include "net/base/net_errors.h"
18 #include "net/base/x509_certificate.h" 20 #include "net/base/x509_certificate.h"
19 #include "net/http/http_response_headers.h" 21 #include "net/http/http_response_headers.h"
20 #include "net/url_request/url_request.h" 22 #include "net/url_request/url_request.h"
21 23
22 using base::Time; 24 using base::Time;
23 using base::TimeDelta; 25 using base::TimeDelta;
24 26
25 // 27 //
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 NotifyReadComplete(bytes_read); 226 NotifyReadComplete(bytes_read);
225 } 227 }
226 228
227 void URLRequestInterceptJob::Observe(NotificationType type, 229 void URLRequestInterceptJob::Observe(NotificationType type,
228 const NotificationSource& source, 230 const NotificationSource& source,
229 const NotificationDetails& details) { 231 const NotificationDetails& details) {
230 DCHECK(type == NotificationType::CHROME_PLUGIN_UNLOADED); 232 DCHECK(type == NotificationType::CHROME_PLUGIN_UNLOADED);
231 DCHECK(plugin_ == Source<ChromePluginLib>(source).ptr()); 233 DCHECK(plugin_ == Source<ChromePluginLib>(source).ptr());
232 DetachPlugin(); 234 DetachPlugin();
233 } 235 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_unpacker.cc ('k') | chrome/nacl/nacl_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698