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

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

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/string_util.h" 12 #include "base/string_util.h"
13 #include "chrome/common/chrome_plugin_lib.h" 13 #include "chrome/common/chrome_plugin_lib.h"
14 #include "net/base/net_errors.h" 14 #include "net/base/net_errors.h"
15 15
16 using base::Time;
17 using base::TimeDelta;
18
16 // 19 //
17 // URLRequestInterceptJob 20 // URLRequestInterceptJob
18 // 21 //
19 22
20 URLRequestInterceptJob::URLRequestInterceptJob(URLRequest* request, 23 URLRequestInterceptJob::URLRequestInterceptJob(URLRequest* request,
21 ChromePluginLib* plugin, 24 ChromePluginLib* plugin,
22 ScopableCPRequest* cprequest) 25 ScopableCPRequest* cprequest)
23 : URLRequestJob(request), 26 : URLRequestJob(request),
24 cprequest_(cprequest), 27 cprequest_(cprequest),
25 plugin_(plugin), 28 plugin_(plugin),
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 } 203 }
201 204
202 void URLRequestInterceptJob::Observe(NotificationType type, 205 void URLRequestInterceptJob::Observe(NotificationType type,
203 const NotificationSource& source, 206 const NotificationSource& source,
204 const NotificationDetails& details) { 207 const NotificationDetails& details) {
205 DCHECK(type == NOTIFY_CHROME_PLUGIN_UNLOADED); 208 DCHECK(type == NOTIFY_CHROME_PLUGIN_UNLOADED);
206 DCHECK(plugin_ == Source<ChromePluginLib>(source).ptr()); 209 DCHECK(plugin_ == Source<ChromePluginLib>(source).ptr());
207 210
208 DetachPlugin(); 211 DetachPlugin();
209 } 212 }
210
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698