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

Unified Diff: chrome/browser/debugger/devtools_file_helper.h

Issue 11630004: DevTools: rename debugger/ to devtools/, move DevTools files into content/renderer/devtools. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: For landing Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/debugger/devtools_file_helper.h
diff --git a/chrome/browser/debugger/devtools_file_helper.h b/chrome/browser/debugger/devtools_file_helper.h
deleted file mode 100644
index 641ca5c09e67e161417c45b67ff234de182c40a0..0000000000000000000000000000000000000000
--- a/chrome/browser/debugger/devtools_file_helper.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_DEBUGGER_DEVTOOLS_FILE_HELPER_H_
-#define CHROME_BROWSER_DEBUGGER_DEVTOOLS_FILE_HELPER_H_
-
-#include <map>
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
-
-class FilePath;
-class Profile;
-
-class DevToolsFileHelper {
- public:
- class Delegate {
- public:
- virtual ~Delegate() {}
- virtual void FileSavedAs(const std::string& url) = 0;
- virtual void AppendedTo(const std::string& url) = 0;
- };
-
- DevToolsFileHelper(Profile* profile, Delegate* delegate);
- ~DevToolsFileHelper();
-
- // Saves |content| to the file and associates its path with given |url|.
- // If client is calling this method with given |url| for the first time
- // or |save_as| is true, confirmation dialog is shown to the user.
- void Save(const std::string& url,
- const std::string& content,
- bool save_as);
-
- // Append |content| to the file that has been associated with given |url|.
- // The |url| can be associated with a file via calling Save method.
- // If the Save method has not been called for this |url|, then
- // Append method does nothing.
- void Append(const std::string& url, const std::string& content);
-
- void FileSelected(const std::string& url,
- const FilePath& path,
- const std::string& content);
-
- private:
- static void WriteFile(const FilePath& path, const std::string& content);
- static void AppendToFile(const FilePath& path, const std::string& content);
-
- class SaveAsDialog;
-
- Profile* profile_;
- Delegate* delegate_;
- scoped_refptr<SaveAsDialog> save_as_dialog_;
- typedef std::map<std::string, FilePath> PathsMap;
- PathsMap saved_files_;
- DISALLOW_COPY_AND_ASSIGN(DevToolsFileHelper);
-};
-
-#endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_FILE_HELPER_H_
« no previous file with comments | « chrome/browser/debugger/browser_list_tabcontents_provider.cc ('k') | chrome/browser/debugger/devtools_file_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698