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

Side by Side Diff: content/browser/transition_request_manager.cc

Issue 504273002: Remove implicit conversions from scoped_refptr to T* in content/ (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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/transition_request_manager.h" 5 #include "content/browser/transition_request_manager.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 TransitionLayerData::TransitionLayerData() { 78 TransitionLayerData::TransitionLayerData() {
79 } 79 }
80 80
81 TransitionLayerData::~TransitionLayerData() { 81 TransitionLayerData::~TransitionLayerData() {
82 } 82 }
83 83
84 void TransitionRequestManager::ParseTransitionStylesheetsFromHeaders( 84 void TransitionRequestManager::ParseTransitionStylesheetsFromHeaders(
85 const scoped_refptr<net::HttpResponseHeaders>& headers, 85 const scoped_refptr<net::HttpResponseHeaders>& headers,
86 std::vector<GURL>& entering_stylesheets, 86 std::vector<GURL>& entering_stylesheets,
87 const GURL& resolve_address) { 87 const GURL& resolve_address) {
88 if (headers == NULL) 88 if (headers.get() == NULL)
89 return; 89 return;
90 90
91 std::string transition_stylesheet; 91 std::string transition_stylesheet;
92 std::vector<std::pair<std::string, std::string> > attributes; 92 std::vector<std::pair<std::string, std::string> > attributes;
93 void* header_iter = NULL; 93 void* header_iter = NULL;
94 while (EnumerateLinkHeaders(headers, 94 while (EnumerateLinkHeaders(headers,
95 &header_iter, 95 &header_iter,
96 "transition-entering-stylesheet", 96 "transition-entering-stylesheet",
97 &transition_stylesheet, 97 &transition_stylesheet,
98 &attributes)) { 98 &attributes)) {
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 TransitionRequestManager::~TransitionRequestManager() { 176 TransitionRequestManager::~TransitionRequestManager() {
177 } 177 }
178 178
179 // static 179 // static
180 TransitionRequestManager* TransitionRequestManager::GetInstance() { 180 TransitionRequestManager* TransitionRequestManager::GetInstance() {
181 return Singleton<TransitionRequestManager>::get(); 181 return Singleton<TransitionRequestManager>::get();
182 } 182 }
183 183
184 } // namespace content 184 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/tracing/tracing_controller_impl.cc ('k') | content/browser/utility_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698