Home
last modified time | relevance | path

Searched refs:file_url (Results 1 – 25 of 66) sorted by relevance

123

/external/chromium_org/content/renderer/
Ddom_serializer_browsertest.cc289 void SerializeHTMLDOMWithDocTypeOnRenderer(const GURL& file_url) { in SerializeHTMLDOMWithDocTypeOnRenderer() argument
291 WebFrame* web_frame = FindSubFrameByURL(GetWebView(), file_url); in SerializeHTMLDOMWithDocTypeOnRenderer()
296 SerializeDomForURL(file_url, false); in SerializeHTMLDOMWithDocTypeOnRenderer()
298 ASSERT_TRUE(HasSerializedFrame(file_url)); in SerializeHTMLDOMWithDocTypeOnRenderer()
300 GetSerializedContentForFrame(file_url); in SerializeHTMLDOMWithDocTypeOnRenderer()
301 LoadContents(serialized_contents, file_url, in SerializeHTMLDOMWithDocTypeOnRenderer()
309 void SerializeHTMLDOMWithoutDocTypeOnRenderer(const GURL& file_url) { in SerializeHTMLDOMWithoutDocTypeOnRenderer() argument
311 WebFrame* web_frame = FindSubFrameByURL(GetWebView(), file_url); in SerializeHTMLDOMWithoutDocTypeOnRenderer()
316 SerializeDomForURL(file_url, false); in SerializeHTMLDOMWithoutDocTypeOnRenderer()
318 ASSERT_TRUE(HasSerializedFrame(file_url)); in SerializeHTMLDOMWithoutDocTypeOnRenderer()
[all …]
Dsavable_resources_browsertest.cc36 GURL file_url = net::FilePathToFileURL(page_file_path); in GetSavableResourceLinksForPage() local
38 NavigateToURL(shell(), file_url); in GetSavableResourceLinksForPage()
45 file_url, in GetSavableResourceLinksForPage()
51 const GURL& file_url, in CheckResources() argument
73 render_view->GetWebView(), file_url, &result, savable_schemes)); in CheckResources()
/external/chromium/webkit/glue/
Ddom_serializer_unittest.cc289 GURL file_url = net::FilePathToFileURL(page_file_path); in TEST_F() local
290 ASSERT_TRUE(file_url.SchemeIsFile()); in TEST_F()
292 LoadPageFromURL(file_url); in TEST_F()
294 WebFrame* web_frame = FindSubFrameByURL(test_shell_->webView(), file_url); in TEST_F()
299 SerializeDomForURL(file_url, false); in TEST_F()
301 ASSERT_TRUE(HasSerializedFrame(file_url)); in TEST_F()
303 GetSerializedContentForFrame(file_url); in TEST_F()
304 LoadContents(serialized_contents, file_url, in TEST_F()
318 GURL file_url = net::FilePathToFileURL(page_file_path); in TEST_F() local
319 ASSERT_TRUE(file_url.SchemeIsFile()); in TEST_F()
[all …]
Ddom_operations_unittest.cc42 GURL file_url = net::FilePathToFileURL(page_file_path); in GetSavableResourceLinksForPage() local
45 test_shell_->LoadURL(file_url); in GetSavableResourceLinksForPage()
63 test_shell_->webView(), file_url, &result, savable_schemes)); in GetSavableResourceLinksForPage()
/external/chromium_org/chrome/common/extensions/
Dextension_unittest.cc232 GURL file_url("file:///etc/passwd"); in TEST() local
241 extension.get(), file_url, file_url, -1, NULL, -1, NULL)); in TEST()
246 extension.get(), file_url, file_url, -1, NULL, -1, NULL)); in TEST()
252 extension.get(), file_url, file_url, -1, NULL, -1, NULL)); in TEST()
258 extension.get(), file_url, file_url, -1, NULL, -1, NULL)); in TEST()
264 extension.get(), file_url, file_url, -1, NULL, -1, NULL)); in TEST()
270 extension.get(), file_url, file_url, -1, NULL, -1, NULL)); in TEST()
277 file_url, in TEST()
278 file_url, in TEST()
288 file_url, in TEST()
[all …]
/external/chromium_org/components/nacl/browser/
Dnacl_file_host.cc125 const GURL& file_url, in DoOpenNaClExecutableOnThreadPool() argument
131 file_url, true /* use_blocking_api */, &file_path)) { in DoOpenNaClExecutableOnThreadPool()
206 const GURL& file_url, in OpenNaClExecutable() argument
214 render_view_id, file_url, reply_msg)); in OpenNaClExecutable()
230 file_url)) { in OpenNaClExecutable()
243 file_url, reply_msg))) { in OpenNaClExecutable()
/external/chromium_org/chrome/browser/nacl_host/
Dnacl_browser_delegate_impl.cc127 const GURL& file_url, bool use_blocking_api, base::FilePath* file_path) { in MapUrlToLocalFilePath() argument
131 extension_info_map_->extensions().GetExtensionOrAppByURL(file_url); in MapUrlToLocalFilePath()
139 if (file_url.SchemeIs(extensions::kExtensionScheme)) { in MapUrlToLocalFilePath()
140 std::string path = file_url.path(); in MapUrlToLocalFilePath()
148 std::string path = file_url.path(); in MapUrlToLocalFilePath()
/external/chromium_org/chrome/renderer/
Dcontent_settings_observer_unittest.cc39 GURL file_url("file:///dir/"); in TEST_F() local
41 WebSecurityOrigin::create(file_url), in TEST_F()
44 WebSecurityOrigin::create(file_url), in TEST_F()
/external/chromium/chrome/browser/net/
Durl_request_mock_net_error_job.cc73 std::wstring file_url(L"file:///"); in Factory() local
74 file_url.append(mock_info.base); in Factory()
75 file_url.append(UTF8ToWide(url.path())); in Factory()
78 net::FileURLToFilePath(GURL(WideToUTF8(file_url)), &file_path); in Factory()
Durl_fixer_upper.cc173 GURL file_url = net::FilePathToFileURL(FilePath(filename)); in FixupPath() local
174 if (file_url.is_valid()) { in FixupPath()
175 return UTF16ToUTF8(net::FormatUrl(file_url, std::string(), in FixupPath()
558 GURL file_url = net::FilePathToFileURL(full_path); in FixupRelativeFile() local
559 if (file_url.is_valid()) in FixupRelativeFile()
560 return GURL(UTF16ToUTF8(net::FormatUrl(file_url, std::string(), in FixupRelativeFile()
Durl_request_mock_http_job.cc67 GURL file_url(net::FilePathToFileURL(base_path)); in GetOnDiskPath() local
68 std::string url = file_url.spec() + request->url().path(); in GetOnDiskPath()
/external/chromium_org/chrome/test/functional/media/
Dmedia_stat_perf.py52 file_url = self.GetFileURLForDataPath(file_name)
53 logging.debug('Running perf test for %s.', file_url)
60 self.CallJavascriptFunc('startTest', [file_url], tab_index=1))
Dmedia_jerky.py174 file_url = self.GetFileURLForDataPath(
191 self.assertTrue(self.ExecuteJavascript("startTest('%s');" % file_url))
/external/chromium_org/ui/base/clipboard/
Dclipboard_util_win.cc94 wchar_t file_url[INTERNET_MAX_URL_LENGTH]; in GetFileUrl() local
95 DWORD file_url_len = arraysize(file_url); in GetFileUrl()
96 if (SUCCEEDED(::UrlCreateFromPathW(data.get(), file_url, &file_url_len, in GetFileUrl()
98 url->assign(file_url); in GetFileUrl()
99 title->assign(file_url); in GetFileUrl()
116 char file_url[INTERNET_MAX_URL_LENGTH]; in GetFileUrl() local
117 DWORD file_url_len = arraysize(file_url); in GetFileUrl()
118 if (SUCCEEDED(::UrlCreateFromPathA(data.get(), file_url, &file_url_len, in GetFileUrl()
120 url->assign(UTF8ToWide(file_url)); in GetFileUrl()
/external/chromium_org/chrome/browser/extensions/
Dscript_executor.cc119 const GURL& file_url, in ExecuteScript() argument
131 params.file_url = file_url; in ExecuteScript()
/external/chromium_org/chrome/test/functional/
Domnibox.py165 file_url = self.GetFileURLForPath(file_path)
166 crazy_fileurls.append(file_url)
167 self.NavigateToURL(file_url)
170 for file_url in crazy_fileurls:
172 file_url, attr_dict={'type': 'url-what-you-typed',
176 self.assertTrue(os.path.basename(file_url) in
Dchromeos_basic.py23 file_url = self.GetFileURLForDataPath('title2.html')
24 self.NavigateToURL(file_url)
/external/chromium_org/extensions/common/permissions/
Dpermissions_data_unittest.cc229 file_url("file:///foo/bar"), in ExtensionScriptAndCaptureVisibleTest()
239 urls_.insert(file_url); in ExtensionScriptAndCaptureVisibleTest()
312 const GURL file_url; member in extensions::ExtensionScriptAndCaptureVisibleTest
335 EXPECT_TRUE(Blocked(extension.get(), file_url)); in TEST_F()
362 EXPECT_TRUE(Blocked(extension.get(), file_url)); in TEST_F()
415 EXPECT_TRUE(Blocked(extension.get(), file_url)); in TEST_F()
435 EXPECT_TRUE(Blocked(extension.get(), file_url)); in TEST_F()
462 EXPECT_TRUE(Blocked(extension.get(), file_url)); in TEST_F()
480 EXPECT_TRUE(Blocked(extension.get(), file_url)); in TEST_F()
513 EXPECT_TRUE(Blocked(extension.get(), file_url)); in TEST_F()
/external/chromium_org/chrome/test/perf/
Dstartup_test.cc61 const base::FilePath file_url = ui_test_utils::GetTestFilePath( in SetUpWithFileURL() local
64 ASSERT_TRUE(base::PathExists(file_url)); in SetUpWithFileURL()
65 launch_arguments_.AppendArgPath(file_url); in SetUpWithFileURL()
92 GURL file_url = net::FilePathToFileURL(page_cycler_path).Resolve("?skip"); in SetUpWithComplexFileURL() local
93 launch_arguments_.AppendArg(file_url.spec()); in SetUpWithComplexFileURL()
/external/chromium_org/chrome_frame/test/
Dchrome_frame_automation_mock.h81 std::wstring file_url(L"file://"); in NavigateRelativeFile()
82 file_url.append(cf_source_path.Append( in NavigateRelativeFile()
86 return Navigate(WideToUTF8(file_url)); in NavigateRelativeFile()
/external/chromium/chrome/browser/
Dcontent_setting_bubble_model_unittest.cc190 std::string file_url("file:///tmp/test.html"); in TEST_F() local
191 NavigateAndCommit(GURL(file_url)); in TEST_F()
197 ASSERT_NE(std::string::npos, title.find(file_url)); in TEST_F()
/external/chromium_org/content/browser/fileapi/
Dtransient_file_util_unittest.cc41 FileSystemURL* file_url, in CreateAndRegisterTemporaryFile() argument
53 *file_url = file_system_context_->CreateCrackedFileSystemURL( in CreateAndRegisterTemporaryFile()
/external/chromium_org/chrome/browser/chromeos/extensions/file_manager/
Dprivate_api_tasks.cc132 const GURL file_url(params->file_urls[i]); in RunImpl() local
134 file_system_context->CrackURL(file_url)); in RunImpl()
139 file_urls.push_back(file_url); in RunImpl()
/external/chromium/chrome/common/extensions/
Dextension_unittest.cc1235 GURL file_url("file:///etc/passwd"); in TEST() local
1240 EXPECT_FALSE(extension->CanExecuteScriptOnPage(file_url, NULL, NULL)); in TEST()
1244 EXPECT_TRUE(extension->CanExecuteScriptOnPage(file_url, NULL, NULL)); in TEST()
1249 EXPECT_FALSE(extension->CanExecuteScriptOnPage(file_url, NULL, NULL)); in TEST()
1253 EXPECT_TRUE(extension->CanExecuteScriptOnPage(file_url, NULL, NULL)); in TEST()
1258 EXPECT_FALSE(extension->CanExecuteScriptOnPage(file_url, NULL, NULL)); in TEST()
1262 EXPECT_FALSE(extension->CanExecuteScriptOnPage(file_url, NULL, NULL)); in TEST()
1268 file_url, &extension->content_scripts()[0], NULL)); in TEST()
1273 file_url, &extension->content_scripts()[0], NULL)); in TEST()
1279 file_url, &extension->content_scripts()[0], NULL)); in TEST()
[all …]
/external/chromium/chrome/browser/extensions/
Dextension_file_browser_private_api.cc149 std::string file_url; in FindCommonTasks() local
150 if (!files_list->GetString(i, &file_url)) in FindCommonTasks()
154 if (!GetFileBrowserHandlers(profile, GURL(file_url), &file_actions)) in FindCommonTasks()
845 const GURL& file_url = file_urls[i]; in GetLocalPathsOnFileThread() local
849 if (!CrackFileSystemURL(file_url, &file_origin_url, &type, in GetLocalPathsOnFileThread()
866 << file_url.spec(); in GetLocalPathsOnFileThread()
884 std::string file_url; in RunImpl() local
885 args_->GetString(0, &file_url); in RunImpl()
887 file_paths.push_back(GURL(file_url)); in RunImpl()

123