Searched defs:relative_path (Results 1 - 24 of 24) sorted by relevance

/external/chromium/chrome/common/extensions/
H A Dextension_sidebar_utils.cc25 GURL ResolveRelativePath(const std::string& relative_path, argument
28 GURL url(extension->GetResourceURL(relative_path));
31 relative_path);
H A Dextension_resource.cc16 const FilePath& relative_path)
19 relative_path_(relative_path) {
41 const FilePath& extension_root, const FilePath& relative_path) {
48 FilePath full_path = clean_extension_root.Append(relative_path);
14 ExtensionResource(const std::string& extension_id, const FilePath& extension_root, const FilePath& relative_path) argument
40 GetFilePath( const FilePath& extension_root, const FilePath& relative_path) argument
H A Dextension_resource.h23 const FilePath& relative_path);
37 const FilePath& relative_path);
42 const FilePath& relative_path() const { return relative_path_; } function in class:ExtensionResource
H A Dextension_resource_unittest.cc21 EXPECT_TRUE(resource.relative_path().empty());
34 FilePath relative_path; local
35 relative_path = relative_path.AppendASCII("cira.js");
38 ExtensionResource resource(extension_id, root_path, relative_path);
42 EXPECT_EQ(relative_path.value(), resource.relative_path().value());
88 ToLower(resource.relative_path().value()));
H A Duser_script.cc51 const FilePath& relative_path,
54 relative_path_(relative_path),
50 File(const FilePath& extension_root, const FilePath& relative_path, const GURL& url) argument
H A Dextension_l10n_util.cc297 FilePath relative_path; local
298 if (!locales_path.AppendRelativePath(locale_path, &relative_path)) {
302 std::string subdir = relative_path.MaybeAsASCII();
H A Dextension_unpacker.cc306 FilePath relative_path; local
308 if (!temp_install_dir_.AppendRelativePath(message_path, &relative_path)) {
313 std::string dir_name = relative_path.DirName().MaybeAsASCII();
H A Dextension_file_util.cc39 static bool IsScriptValid(const FilePath& path, const FilePath& relative_path,
187 js_script.extension_root(), js_script.relative_path());
188 if (!IsScriptValid(path, js_script.relative_path(),
196 css_script.extension_root(), css_script.relative_path());
197 if (!IsScriptValid(path, css_script.relative_path(),
461 const FilePath& relative_path,
469 relative_path.LossyDisplayName());
476 relative_path.LossyDisplayName());
460 IsScriptValid(const FilePath& path, const FilePath& relative_path, int message_id, std::string* error) argument
H A Duser_script.h53 File(const FilePath& extension_root, const FilePath& relative_path,
59 const FilePath& relative_path() const { return relative_path_; } function in class:UserScript::File
H A Dextension.cc682 const std::string& relative_path) {
686 GURL ret_val = GURL(extension_url.spec() + relative_path);
846 resource.extension_root(), resource.relative_path(), url));
864 resource.extension_root(), resource.relative_path(), url));
1474 const std::string& relative_path) const {
1476 FilePath relative_file_path(relative_path);
1478 FilePath relative_file_path(UTF8ToWide(relative_path));
2598 const FilePath& path = source.relative_path();
2624 const FilePath& path = source.relative_path();
681 GetResourceURL(const GURL& extension_url, const std::string& relative_path) argument
/external/chromium/testing/gtest/test/
H A Dgtest-options_test.cc63 FilePath GetAbsolutePathOf(const FilePath& relative_path) { argument
64 return FilePath::ConcatPaths(FilePath::GetCurrentDir(), relative_path);
/external/gtest/test/
H A Dgtest-options_test.cc63 FilePath GetAbsolutePathOf(const FilePath& relative_path) { argument
64 return FilePath::ConcatPaths(FilePath::GetCurrentDir(), relative_path);
/external/protobuf/gtest/test/
H A Dgtest-options_test.cc63 FilePath GetAbsolutePathOf(const FilePath& relative_path) { argument
64 return FilePath::ConcatPaths(FilePath::GetCurrentDir(), relative_path);
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/test/
H A Dcore-extensions.rb184 # File.relative_path('rel/path') # => './rel/path'
185 # File.relative_path('/some/abs/path', '/some') # => './abs/path'
186 # File.relative_path('/some/file.txt', '/some/abs/path') # => '../../file.txt'
187 def self.relative_path( target, reference = Dir.pwd ) singleton method in class:File
/external/chromium/chrome/browser/extensions/
H A Dexecute_code_in_tab_function.cc107 std::string relative_path; local
109 if (!script_info->GetString(keys::kFileKey, &relative_path))
111 resource_ = GetExtension()->GetResource(relative_path);
113 if (resource_.extension_root().empty() || resource_.relative_path().empty()) {
135 resource_.relative_path().value());
138 WideToUTF8(resource_.relative_path().value()));
H A Dextension_protocols.cc143 FilePath relative_path = directory_path.BaseName().Append( local
146 relative_path = relative_path.NormalizeWindowsPathSeparators();
158 if (relative_path == bm_resource_path) {
159 return new URLRequestResourceBundleJob(request, relative_path,
H A Dextension_webstore_private_browsertest.cc121 // |relative_path|, but replaces the hostname with kTestUrlHostname so that
124 GURL GetUrl(const std::string& relative_path) { argument
126 "files/extensions/webstore_private/" + relative_path);
134 const std::string& relative_path,
153 GURL url = GetUrl(relative_path);
165 void RunLoginTest(const std::string& relative_path, argument
170 relative_path,
175 relative_path,
133 RunLoginTestImpl(bool incognito, const std::string& relative_path, const std::string& initial_login, bool login_succeeds, const std::string& login_result) argument
H A Dsandboxed_extension_unpacker.cc584 FilePath relative_path = FilePath::FromWStringHack(UTF8ToWide(*key_it)); local
585 relative_path = relative_path.Append(Extension::kMessagesFilename);
586 if (relative_path.IsAbsolute() || relative_path.ReferencesParent()) {
595 FilePath path = extension_root_.Append(relative_path);
/external/chromium/chrome/browser/ui/webui/
H A Dchrome_url_data_manager_backend.cc415 std::string relative_path; local
416 URLToRequest(stripped_url, &source_name, &relative_path);
421 // Check that |relative_path| is not an absolute path (otherwise
424 FilePath p(FilePath::StringType(relative_path.begin(), relative_path.end()));
432 *path = inspector_dir.AppendASCII(relative_path);
/external/chromium/testing/gtest/src/
H A Dgtest-filepath.cc189 // Given directory = "dir", relative_path = "test.xml", returns "dir/test.xml".
192 const FilePath& relative_path) {
194 return relative_path;
197 relative_path.c_str()));
191 ConcatPaths(const FilePath& directory, const FilePath& relative_path) argument
/external/gtest/src/
H A Dgtest-filepath.cc189 // Given directory = "dir", relative_path = "test.xml", returns "dir/test.xml".
192 const FilePath& relative_path) {
194 return relative_path;
197 relative_path.c_str()));
191 ConcatPaths(const FilePath& directory, const FilePath& relative_path) argument
/external/llvm/utils/unittest/googletest/
H A Dgtest-filepath.cc189 // Given directory = "dir", relative_path = "test.xml", returns "dir/test.xml".
192 const FilePath& relative_path) {
194 return relative_path;
197 relative_path.c_str()));
191 ConcatPaths(const FilePath& directory, const FilePath& relative_path) argument
/external/protobuf/gtest/src/
H A Dgtest-filepath.cc158 // Given directory = "dir", relative_path = "test.xml", returns "dir/test.xml".
161 const FilePath& relative_path) {
163 return relative_path;
166 relative_path.c_str()));
160 ConcatPaths(const FilePath& directory, const FilePath& relative_path) argument
/external/chromium/chrome/browser/ui/views/
H A Dbrowser_actions_container.cc95 std::string relative_path = browser_action_->default_icon_path(); local
96 if (relative_path.empty())
103 tracker_.LoadImage(extension_, extension_->GetResource(relative_path),

Completed in 441 milliseconds