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

Side by Side Diff: content/browser/renderer_host/socket_stream_dispatcher_host.h

Issue 567923002: Refactoring the weak_ptr_factory order in content/browser/renderer_host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 void DeleteSocketStreamHost(int socket_id); 82 void DeleteSocketStreamHost(int socket_id);
83 83
84 net::URLRequestContext* GetURLRequestContext(); 84 net::URLRequestContext* GetURLRequestContext();
85 85
86 IDMap<SocketStreamHost> hosts_; 86 IDMap<SocketStreamHost> hosts_;
87 int render_process_id_; 87 int render_process_id_;
88 GetRequestContextCallback request_context_callback_; 88 GetRequestContextCallback request_context_callback_;
89 ResourceContext* resource_context_; 89 ResourceContext* resource_context_;
90 90
91 bool on_shutdown_;
92
91 base::WeakPtrFactory<SocketStreamDispatcherHost> weak_ptr_factory_; 93 base::WeakPtrFactory<SocketStreamDispatcherHost> weak_ptr_factory_;
92 bool on_shutdown_;
93 94
94 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcherHost); 95 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcherHost);
95 }; 96 };
96 97
97 } // namespace content 98 } // namespace content
98 99
99 #endif // CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ 100 #endif // CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698