Chromium Code Reviews| 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 /* | 5 /* |
| 6 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 6 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
| 10 * | 10 * |
| (...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 789 case LOAD_TYPE_DEFAULT: | 789 case LOAD_TYPE_DEFAULT: |
| 790 break; | 790 break; |
| 791 case LOAD_TYPE_BROWSER_INITIATED_HTTP_POST: | 791 case LOAD_TYPE_BROWSER_INITIATED_HTTP_POST: |
| 792 entry->SetHasPostData(true); | 792 entry->SetHasPostData(true); |
| 793 entry->SetBrowserInitiatedPostData( | 793 entry->SetBrowserInitiatedPostData( |
| 794 params.browser_initiated_post_data.get()); | 794 params.browser_initiated_post_data.get()); |
| 795 break; | 795 break; |
| 796 case LOAD_TYPE_DATA: | 796 case LOAD_TYPE_DATA: |
| 797 entry->SetBaseURLForDataURL(params.base_url_for_data_url); | 797 entry->SetBaseURLForDataURL(params.base_url_for_data_url); |
| 798 entry->SetVirtualURL(params.virtual_url_for_data_url); | 798 entry->SetVirtualURL(params.virtual_url_for_data_url); |
| 799 entry->SetDataURLAsString(params.data_url_as_string); | |
|
boliu
2015/12/09 19:33:02
probably want to assert here that GetURL is empty?
| |
| 799 entry->SetCanLoadLocalResources(params.can_load_local_resources); | 800 entry->SetCanLoadLocalResources(params.can_load_local_resources); |
| 800 break; | 801 break; |
| 801 default: | 802 default: |
| 802 NOTREACHED(); | 803 NOTREACHED(); |
| 803 break; | 804 break; |
| 804 }; | 805 }; |
| 805 | 806 |
| 806 LoadEntry(entry.Pass()); | 807 LoadEntry(entry.Pass()); |
| 807 } | 808 } |
| 808 | 809 |
| (...skipping 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2032 } | 2033 } |
| 2033 } | 2034 } |
| 2034 } | 2035 } |
| 2035 | 2036 |
| 2036 void NavigationControllerImpl::SetGetTimestampCallbackForTest( | 2037 void NavigationControllerImpl::SetGetTimestampCallbackForTest( |
| 2037 const base::Callback<base::Time()>& get_timestamp_callback) { | 2038 const base::Callback<base::Time()>& get_timestamp_callback) { |
| 2038 get_timestamp_callback_ = get_timestamp_callback; | 2039 get_timestamp_callback_ = get_timestamp_callback; |
| 2039 } | 2040 } |
| 2040 | 2041 |
| 2041 } // namespace content | 2042 } // namespace content |
| OLD | NEW |