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 #include "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/containers/hash_tables.h" | 8 #include "base/containers/hash_tables.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 168 |
169 class DomSerializerTests : public ContentBrowserTest, | 169 class DomSerializerTests : public ContentBrowserTest, |
170 public WebPageSerializerClient { | 170 public WebPageSerializerClient { |
171 public: | 171 public: |
172 DomSerializerTests() | 172 DomSerializerTests() |
173 : serialized_(false), | 173 : serialized_(false), |
174 local_directory_name_(FILE_PATH_LITERAL("./dummy_files/")) {} | 174 local_directory_name_(FILE_PATH_LITERAL("./dummy_files/")) {} |
175 | 175 |
176 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { | 176 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { |
177 command_line->AppendSwitch(switches::kSingleProcess); | 177 command_line->AppendSwitch(switches::kSingleProcess); |
178 #if defined(OS_WIN) && defined(USE_AURA) | 178 #if defined(OS_WIN) |
179 // Don't want to try to create a GPU process. | 179 // Don't want to try to create a GPU process. |
180 command_line->AppendSwitch(switches::kDisableAcceleratedCompositing); | 180 command_line->AppendSwitch(switches::kDisableAcceleratedCompositing); |
181 #endif | 181 #endif |
182 } | 182 } |
183 | 183 |
184 // DomSerializerDelegate. | 184 // DomSerializerDelegate. |
185 virtual void didSerializeDataForFrame(const WebURL& frame_web_url, | 185 virtual void didSerializeDataForFrame(const WebURL& frame_web_url, |
186 const WebCString& data, | 186 const WebCString& data, |
187 PageSerializationStatus status) { | 187 PageSerializationStatus status) { |
188 | 188 |
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1023 NavigateToURL(shell(), file_url); | 1023 NavigateToURL(shell(), file_url); |
1024 | 1024 |
1025 PostTaskToInProcessRendererAndWait( | 1025 PostTaskToInProcessRendererAndWait( |
1026 base::Bind( | 1026 base::Bind( |
1027 &DomSerializerTests:: | 1027 &DomSerializerTests:: |
1028 SubResourceForElementsInNonHTMLNamespaceOnRenderer, | 1028 SubResourceForElementsInNonHTMLNamespaceOnRenderer, |
1029 base::Unretained(this), file_url)); | 1029 base::Unretained(this), file_url)); |
1030 } | 1030 } |
1031 | 1031 |
1032 } // namespace content | 1032 } // namespace content |
OLD | NEW |