| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/common/common_param_traits.h" | 5 #include "content/common/common_param_traits.h" |
| 6 | 6 |
| 7 #include "content/common/content_constants.h" | 7 #include "content/common/content_constants.h" |
| 8 #include "net/base/host_port_pair.h" | 8 #include "net/base/host_port_pair.h" |
| 9 #include "net/base/upload_data.h" | 9 #include "net/base/upload_data.h" |
| 10 #include "net/http/http_response_headers.h" | 10 #include "net/http/http_response_headers.h" |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 break; | 120 break; |
| 121 case ResourceType::PREFETCH: | 121 case ResourceType::PREFETCH: |
| 122 type = "PREFETCH"; | 122 type = "PREFETCH"; |
| 123 break; | 123 break; |
| 124 case ResourceType::PRERENDER: | 124 case ResourceType::PRERENDER: |
| 125 type = "PRERENDER"; | 125 type = "PRERENDER"; |
| 126 break; | 126 break; |
| 127 case ResourceType::FAVICON: | 127 case ResourceType::FAVICON: |
| 128 type = "FAVICON"; | 128 type = "FAVICON"; |
| 129 break; | 129 break; |
| 130 case ResourceType::XHR: |
| 131 type = "XHR"; |
| 132 break; |
| 130 default: | 133 default: |
| 131 type = "UNKNOWN"; | 134 type = "UNKNOWN"; |
| 132 break; | 135 break; |
| 133 } | 136 } |
| 134 | 137 |
| 135 LogParam(type, l); | 138 LogParam(type, l); |
| 136 } | 139 } |
| 137 | 140 |
| 138 void ParamTraits<net::URLRequestStatus>::Write(Message* m, | 141 void ParamTraits<net::URLRequestStatus>::Write(Message* m, |
| 139 const param_type& p) { | 142 const param_type& p) { |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 const SkBitmap_Data* bmp_data = | 559 const SkBitmap_Data* bmp_data = |
| 557 reinterpret_cast<const SkBitmap_Data*>(fixed_data); | 560 reinterpret_cast<const SkBitmap_Data*>(fixed_data); |
| 558 return bmp_data->InitSkBitmapFromData(r, variable_data, variable_data_size); | 561 return bmp_data->InitSkBitmapFromData(r, variable_data, variable_data_size); |
| 559 } | 562 } |
| 560 | 563 |
| 561 void ParamTraits<SkBitmap>::Log(const SkBitmap& p, std::string* l) { | 564 void ParamTraits<SkBitmap>::Log(const SkBitmap& p, std::string* l) { |
| 562 l->append("<SkBitmap>"); | 565 l->append("<SkBitmap>"); |
| 563 } | 566 } |
| 564 | 567 |
| 565 } // namespace IPC | 568 } // namespace IPC |
| OLD | NEW |