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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 break; | 114 break; |
115 case ResourceType::WORKER: | 115 case ResourceType::WORKER: |
116 type = "WORKER"; | 116 type = "WORKER"; |
117 break; | 117 break; |
118 case ResourceType::SHARED_WORKER: | 118 case ResourceType::SHARED_WORKER: |
119 type = "SHARED_WORKER"; | 119 type = "SHARED_WORKER"; |
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: |
| 125 type = "PRERENDER"; |
| 126 break; |
124 case ResourceType::FAVICON: | 127 case ResourceType::FAVICON: |
125 type = "FAVICON"; | 128 type = "FAVICON"; |
126 break; | 129 break; |
127 default: | 130 default: |
128 type = "UNKNOWN"; | 131 type = "UNKNOWN"; |
129 break; | 132 break; |
130 } | 133 } |
131 | 134 |
132 LogParam(type, l); | 135 LogParam(type, l); |
133 } | 136 } |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 const SkBitmap_Data* bmp_data = | 556 const SkBitmap_Data* bmp_data = |
554 reinterpret_cast<const SkBitmap_Data*>(fixed_data); | 557 reinterpret_cast<const SkBitmap_Data*>(fixed_data); |
555 return bmp_data->InitSkBitmapFromData(r, variable_data, variable_data_size); | 558 return bmp_data->InitSkBitmapFromData(r, variable_data, variable_data_size); |
556 } | 559 } |
557 | 560 |
558 void ParamTraits<SkBitmap>::Log(const SkBitmap& p, std::string* l) { | 561 void ParamTraits<SkBitmap>::Log(const SkBitmap& p, std::string* l) { |
559 l->append("<SkBitmap>"); | 562 l->append("<SkBitmap>"); |
560 } | 563 } |
561 | 564 |
562 } // namespace IPC | 565 } // namespace IPC |
OLD | NEW |