OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/renderer/render_view.h" | 5 #include "chrome/renderer/render_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 #include "webkit/glue/webkit_glue.h" | 54 #include "webkit/glue/webkit_glue.h" |
55 #include "webkit/glue/webpreferences.h" | 55 #include "webkit/glue/webpreferences.h" |
56 #include "webkit/glue/webresponse.h" | 56 #include "webkit/glue/webresponse.h" |
57 #include "webkit/glue/weburlrequest.h" | 57 #include "webkit/glue/weburlrequest.h" |
58 #include "webkit/glue/webview.h" | 58 #include "webkit/glue/webview.h" |
59 #include "webkit/glue/plugins/webplugin_delegate_impl.h" | 59 #include "webkit/glue/plugins/webplugin_delegate_impl.h" |
60 #include "webkit/port/platform/graphics/PlatformContextSkia.h" | 60 #include "webkit/port/platform/graphics/PlatformContextSkia.h" |
61 | 61 |
62 #include "generated_resources.h" | 62 #include "generated_resources.h" |
63 | 63 |
| 64 using base::TimeDelta; |
| 65 |
64 //----------------------------------------------------------------------------- | 66 //----------------------------------------------------------------------------- |
65 | 67 |
66 // define to write the time necessary for thumbnail/DOM text retrieval, | 68 // define to write the time necessary for thumbnail/DOM text retrieval, |
67 // respectively, into the system debug log | 69 // respectively, into the system debug log |
68 // #define TIME_BITMAP_RETRIEVAL | 70 // #define TIME_BITMAP_RETRIEVAL |
69 // #define TIME_TEXT_RETRIEVAL | 71 // #define TIME_TEXT_RETRIEVAL |
70 | 72 |
71 // maximum number of characters in the document to index, any text beyond this | 73 // maximum number of characters in the document to index, any text beyond this |
72 // point will be clipped | 74 // point will be clipped |
73 static const int kMaxIndexChars = 65535; | 75 static const int kMaxIndexChars = 65535; |
(...skipping 2586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2660 template_resource_id)); | 2662 template_resource_id)); |
2661 | 2663 |
2662 if (template_html.empty()) { | 2664 if (template_html.empty()) { |
2663 NOTREACHED() << "unable to load template. ID: " << template_resource_id; | 2665 NOTREACHED() << "unable to load template. ID: " << template_resource_id; |
2664 return ""; | 2666 return ""; |
2665 } | 2667 } |
2666 // "t" is the id of the templates root node. | 2668 // "t" is the id of the templates root node. |
2667 return jstemplate_builder::GetTemplateHtml( | 2669 return jstemplate_builder::GetTemplateHtml( |
2668 template_html, &error_strings, "t"); | 2670 template_html, &error_strings, "t"); |
2669 } | 2671 } |
OLD | NEW |