OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |