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

Side by Side Diff: content/browser/renderer_host/socket_stream_host.cc

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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/renderer_host/socket_stream_host.h" 5 #include "content/browser/renderer_host/socket_stream_host.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/common/socket_stream.h" 8 #include "content/common/socket_stream.h"
9 #include "content/public/browser/content_browser_client.h" 9 #include "content/public/browser/content_browser_client.h"
10 #include "net/socket_stream/socket_stream_job.h" 10 #include "net/socket_stream/socket_stream_job.h"
11 #include "net/url_request/url_request_context.h" 11 #include "net/url_request/url_request_context.h"
12 12
13 namespace content { 13 namespace content {
14 namespace { 14 namespace {
15 15
16 const char* kSocketIdKey = "socketId"; 16 const char* kSocketIdKey = "socketId";
17 17
18 class SocketStreamId : public net::SocketStream::UserData { 18 class SocketStreamId : public net::SocketStream::UserData {
19 public: 19 public:
20 explicit SocketStreamId(int socket_id) : socket_id_(socket_id) {} 20 explicit SocketStreamId(int socket_id) : socket_id_(socket_id) {}
21 virtual ~SocketStreamId() {} 21 ~SocketStreamId() override {}
22 int socket_id() const { return socket_id_; } 22 int socket_id() const { return socket_id_; }
23 23
24 private: 24 private:
25 int socket_id_; 25 int socket_id_;
26 }; 26 };
27 27
28 } // namespace 28 } // namespace
29 29
30 SocketStreamHost::SocketStreamHost( 30 SocketStreamHost::SocketStreamHost(
31 net::SocketStream::Delegate* delegate, 31 net::SocketStream::Delegate* delegate,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } 101 }
102 102
103 void SocketStreamHost::ContinueSSLRequest() { 103 void SocketStreamHost::ContinueSSLRequest() {
104 VLOG(1) << "SocketStreamHost::ContinueSSLRequest socket_id=" << socket_id_; 104 VLOG(1) << "SocketStreamHost::ContinueSSLRequest socket_id=" << socket_id_;
105 if (!job_.get()) 105 if (!job_.get())
106 return; 106 return;
107 job_->ContinueDespiteError(); 107 job_->ContinueDespiteError();
108 } 108 }
109 109
110 } // namespace content 110 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/socket_stream_host.h ('k') | content/browser/renderer_host/software_frame_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698