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

Side by Side Diff: content/browser/ssl/ssl_error_handler.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 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
« no previous file with comments | « content/browser/ssl/ssl_client_auth_handler.cc ('k') | content/browser/ssl/ssl_manager.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) 2011 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 #include "content/browser/ssl/ssl_error_handler.h" 5 #include "content/browser/ssl/ssl_error_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "content/browser/renderer_host/render_view_host.h" 8 #include "content/browser/renderer_host/render_view_host.h"
9 #include "content/browser/renderer_host/resource_dispatcher_host.h" 9 #include "content/browser/renderer_host/resource_dispatcher_host.h"
10 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" 10 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h"
11 #include "content/browser/ssl/ssl_cert_error_handler.h" 11 #include "content/browser/ssl/ssl_cert_error_handler.h"
12 #include "content/browser/tab_contents/navigation_controller.h" 12 #include "content/browser/tab_contents/navigation_controller.h"
13 #include "content/browser/tab_contents/tab_contents.h" 13 #include "content/browser/tab_contents/tab_contents.h"
14 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
15 #include "net/base/net_errors.h" 15 #include "net/base/net_errors.h"
16 #include "net/url_request/url_request.h" 16 #include "net/url_request/url_request.h"
17 17
18 using content::BrowserThread;
19
18 SSLErrorHandler::SSLErrorHandler(ResourceDispatcherHost* rdh, 20 SSLErrorHandler::SSLErrorHandler(ResourceDispatcherHost* rdh,
19 net::URLRequest* request, 21 net::URLRequest* request,
20 ResourceType::Type resource_type) 22 ResourceType::Type resource_type)
21 : manager_(NULL), 23 : manager_(NULL),
22 request_id_(0, 0), 24 request_id_(0, 0),
23 resource_dispatcher_host_(rdh), 25 resource_dispatcher_host_(rdh),
24 request_url_(request->url()), 26 request_url_(request->url()),
25 resource_type_(resource_type), 27 resource_type_(resource_type),
26 request_has_been_notified_(false) { 28 request_has_been_notified_(false) {
27 DCHECK(!BrowserThread::CurrentlyOn(BrowserThread::UI)); 29 DCHECK(!BrowserThread::CurrentlyOn(BrowserThread::UI));
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // already have been deleted. 180 // already have been deleted.
179 DCHECK(!request_has_been_notified_); 181 DCHECK(!request_has_been_notified_);
180 if (request_has_been_notified_) 182 if (request_has_been_notified_)
181 return; 183 return;
182 184
183 request_has_been_notified_ = true; 185 request_has_been_notified_ = true;
184 186
185 // We're done with this object on the IO thread. 187 // We're done with this object on the IO thread.
186 Release(); 188 Release();
187 } 189 }
OLDNEW
« no previous file with comments | « content/browser/ssl/ssl_client_auth_handler.cc ('k') | content/browser/ssl/ssl_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698