| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/renderer/render_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 5021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5032 provisional_data_source ? provisional_data_source : current_data_source; | 5032 provisional_data_source ? provisional_data_source : current_data_source; |
| 5033 | 5033 |
| 5034 // The current entry can only be replaced if there already is an entry in the | 5034 // The current entry can only be replaced if there already is an entry in the |
| 5035 // history list. | 5035 // history list. |
| 5036 if (data_source && render_view_->history_list_length_ > 0) { | 5036 if (data_source && render_view_->history_list_length_ > 0) { |
| 5037 should_replace_current_entry = data_source->replacesCurrentHistoryItem(); | 5037 should_replace_current_entry = data_source->replacesCurrentHistoryItem(); |
| 5038 } | 5038 } |
| 5039 | 5039 |
| 5040 // These values are assumed on the browser side for navigations. These checks | 5040 // These values are assumed on the browser side for navigations. These checks |
| 5041 // ensure the renderer has the correct values. | 5041 // ensure the renderer has the correct values. |
| 5042 DCHECK_EQ(FETCH_REQUEST_MODE_SAME_ORIGIN, | 5042 DCHECK_EQ(FETCH_REQUEST_MODE_NAVIGATE, |
| 5043 GetFetchRequestModeForWebURLRequest(*request)); | 5043 GetFetchRequestModeForWebURLRequest(*request)); |
| 5044 DCHECK_EQ(FETCH_CREDENTIALS_MODE_INCLUDE, | 5044 DCHECK_EQ(FETCH_CREDENTIALS_MODE_INCLUDE, |
| 5045 GetFetchCredentialsModeForWebURLRequest(*request)); | 5045 GetFetchCredentialsModeForWebURLRequest(*request)); |
| 5046 DCHECK(GetFetchRedirectModeForWebURLRequest(*request) == | 5046 DCHECK(GetFetchRedirectModeForWebURLRequest(*request) == |
| 5047 FetchRedirectMode::MANUAL_MODE); | 5047 FetchRedirectMode::MANUAL_MODE); |
| 5048 DCHECK(frame_->parent() || | 5048 DCHECK(frame_->parent() || |
| 5049 GetRequestContextFrameTypeForWebURLRequest(*request) == | 5049 GetRequestContextFrameTypeForWebURLRequest(*request) == |
| 5050 REQUEST_CONTEXT_FRAME_TYPE_TOP_LEVEL); | 5050 REQUEST_CONTEXT_FRAME_TYPE_TOP_LEVEL); |
| 5051 DCHECK(!frame_->parent() || | 5051 DCHECK(!frame_->parent() || |
| 5052 GetRequestContextFrameTypeForWebURLRequest(*request) == | 5052 GetRequestContextFrameTypeForWebURLRequest(*request) == |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5354 media::ConvertToSwitchOutputDeviceCB(web_callbacks); | 5354 media::ConvertToSwitchOutputDeviceCB(web_callbacks); |
| 5355 scoped_refptr<media::AudioOutputDevice> device = | 5355 scoped_refptr<media::AudioOutputDevice> device = |
| 5356 AudioDeviceFactory::NewOutputDevice(routing_id_, 0, sink_id.utf8(), | 5356 AudioDeviceFactory::NewOutputDevice(routing_id_, 0, sink_id.utf8(), |
| 5357 security_origin); | 5357 security_origin); |
| 5358 media::OutputDeviceStatus status = device->GetDeviceStatus(); | 5358 media::OutputDeviceStatus status = device->GetDeviceStatus(); |
| 5359 device->Stop(); | 5359 device->Stop(); |
| 5360 callback.Run(status); | 5360 callback.Run(status); |
| 5361 } | 5361 } |
| 5362 | 5362 |
| 5363 } // namespace content | 5363 } // namespace content |
| OLD | NEW |