Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(738)

Side by Side Diff: chrome/browser/devtools/devtools_file_helper.h

Issue 105193002: Replace string16 with base::string16. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_FILE_HELPER_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_FILE_HELPER_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_FILE_HELPER_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_FILE_HELPER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 30 matching lines...) Expand all
41 DevToolsFileHelper(content::WebContents* web_contents, Profile* profile); 41 DevToolsFileHelper(content::WebContents* web_contents, Profile* profile);
42 ~DevToolsFileHelper(); 42 ~DevToolsFileHelper();
43 43
44 typedef base::Callback<void(void)> SaveCallback; 44 typedef base::Callback<void(void)> SaveCallback;
45 typedef base::Callback<void(void)> AppendCallback; 45 typedef base::Callback<void(void)> AppendCallback;
46 typedef base::Callback< 46 typedef base::Callback<
47 void(const std::vector<DevToolsFileHelper::FileSystem>&)> 47 void(const std::vector<DevToolsFileHelper::FileSystem>&)>
48 RequestFileSystemsCallback; 48 RequestFileSystemsCallback;
49 typedef base::Callback<void(const DevToolsFileHelper::FileSystem&)> 49 typedef base::Callback<void(const DevToolsFileHelper::FileSystem&)>
50 AddFileSystemCallback; 50 AddFileSystemCallback;
51 typedef base::Callback<void(const string16&, 51 typedef base::Callback<void(const base::string16&,
52 const base::Callback<void(bool)>&)> 52 const base::Callback<void(bool)>&)>
53 ShowInfoBarCallback; 53 ShowInfoBarCallback;
54 54
55 // Saves |content| to the file and associates its path with given |url|. 55 // Saves |content| to the file and associates its path with given |url|.
56 // If client is calling this method with given |url| for the first time 56 // If client is calling this method with given |url| for the first time
57 // or |save_as| is true, confirmation dialog is shown to the user. 57 // or |save_as| is true, confirmation dialog is shown to the user.
58 void Save(const std::string& url, 58 void Save(const std::string& url,
59 const std::string& content, 59 const std::string& content,
60 bool save_as, 60 bool save_as,
61 const SaveCallback& saveCallback, 61 const SaveCallback& saveCallback,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 content::WebContents* web_contents_; 128 content::WebContents* web_contents_;
129 Profile* profile_; 129 Profile* profile_;
130 typedef std::map<std::string, base::FilePath> PathsMap; 130 typedef std::map<std::string, base::FilePath> PathsMap;
131 PathsMap saved_files_; 131 PathsMap saved_files_;
132 base::WeakPtrFactory<DevToolsFileHelper> weak_factory_; 132 base::WeakPtrFactory<DevToolsFileHelper> weak_factory_;
133 DISALLOW_COPY_AND_ASSIGN(DevToolsFileHelper); 133 DISALLOW_COPY_AND_ASSIGN(DevToolsFileHelper);
134 }; 134 };
135 135
136 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_FILE_HELPER_H_ 136 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_FILE_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/custom_home_pages_table_model.cc ('k') | chrome/browser/devtools/devtools_sanity_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698