OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #undef LOG | 5 #undef LOG |
6 | 6 |
7 #include "webkit/tools/test_shell/test_shell.h" | 7 #include "webkit/tools/test_shell/test_shell.h" |
8 | 8 |
9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 event_sending_controller_.reset(new EventSendingController(this)); | 144 event_sending_controller_.reset(new EventSendingController(this)); |
145 plain_text_controller_.reset(new PlainTextController(this)); | 145 plain_text_controller_.reset(new PlainTextController(this)); |
146 text_input_controller_.reset(new TextInputController(this)); | 146 text_input_controller_.reset(new TextInputController(this)); |
147 navigation_controller_.reset(new TestNavigationController(this)); | 147 navigation_controller_.reset(new TestNavigationController(this)); |
148 notification_presenter_.reset(new TestNotificationPresenter(this)); | 148 notification_presenter_.reset(new TestNotificationPresenter(this)); |
149 | 149 |
150 URLRequestFilter* filter = URLRequestFilter::GetInstance(); | 150 URLRequestFilter* filter = URLRequestFilter::GetInstance(); |
151 filter->AddHostnameHandler("test-shell-resource", "inspector", | 151 filter->AddHostnameHandler("test-shell-resource", "inspector", |
152 &URLRequestTestShellFileJob::InspectorFactory); | 152 &URLRequestTestShellFileJob::InspectorFactory); |
153 url_util::AddStandardScheme("test-shell-resource"); | 153 url_util::AddStandardScheme("test-shell-resource"); |
154 | |
155 if (!file_system_root_.CreateUniqueTempDir()) { | |
156 LOG(WARNING) << "Failed to create a temp dir for the filesystem." | |
157 "FileSystem feature will be disabled."; | |
158 DCHECK(file_system_root_.path().empty()); | |
159 } | |
160 } | 154 } |
161 | 155 |
162 TestShell::~TestShell() { | 156 TestShell::~TestShell() { |
163 delegate_->RevokeDragDrop(); | 157 delegate_->RevokeDragDrop(); |
164 | 158 |
165 // DevTools frontend page is supposed to be navigated only once and | 159 // DevTools frontend page is supposed to be navigated only once and |
166 // loading another URL in that Page is an error. | 160 // loading another URL in that Page is an error. |
167 if (!dev_tools_client_.get()) { | 161 if (!dev_tools_client_.get()) { |
168 // Navigate to an empty page to fire all the destruction logic for the | 162 // Navigate to an empty page to fire all the destruction logic for the |
169 // current page. | 163 // current page. |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
873 return -1; | 867 return -1; |
874 } | 868 } |
875 | 869 |
876 bool GetFontTable(int fd, uint32_t table, uint8_t* output, | 870 bool GetFontTable(int fd, uint32_t table, uint8_t* output, |
877 size_t* output_length) { | 871 size_t* output_length) { |
878 return false; | 872 return false; |
879 } | 873 } |
880 #endif | 874 #endif |
881 | 875 |
882 } // namespace webkit_glue | 876 } // namespace webkit_glue |
OLD | NEW |