| 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 "chrome/browser/ui/webui/print_preview_data_source.h" | 5 #include "chrome/browser/ui/webui/print_preview/print_preview_data_source.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
| 12 #include "base/string_piece.h" | 12 #include "base/string_piece.h" |
| 13 #include "base/string_split.h" | 13 #include "base/string_split.h" |
| 14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 url_substr[0], page_index, &data); | 173 url_substr[0], page_index, &data); |
| 174 } | 174 } |
| 175 if (data.get()) { | 175 if (data.get()) { |
| 176 SendResponse(request_id, data); | 176 SendResponse(request_id, data); |
| 177 return; | 177 return; |
| 178 } | 178 } |
| 179 // Invalid request. | 179 // Invalid request. |
| 180 scoped_refptr<RefCountedBytes> empty_bytes(new RefCountedBytes); | 180 scoped_refptr<RefCountedBytes> empty_bytes(new RefCountedBytes); |
| 181 SendResponse(request_id, empty_bytes); | 181 SendResponse(request_id, empty_bytes); |
| 182 } | 182 } |
| OLD | NEW |