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

Unified Diff: chrome/browser/download/download_process_handle.h

Issue 7112011: Change DownloadProcessHandle to be more of an encapsulated class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged to LKGR. Created 9 years, 6 months 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
« no previous file with comments | « chrome/browser/download/download_manager.cc ('k') | chrome/browser/download/download_process_handle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_process_handle.h
diff --git a/chrome/browser/download/download_process_handle.h b/chrome/browser/download/download_process_handle.h
deleted file mode 100644
index b722d61be39cd7db82b35d7756242551ca8ed708..0000000000000000000000000000000000000000
--- a/chrome/browser/download/download_process_handle.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2011 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_DOWNLOAD_DOWNLOAD_PROCESS_HANDLE_H_
-#define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_PROCESS_HANDLE_H_
-#pragma once
-
-class DownloadManager;
-class ResourceDispatcherHost;
-class TabContents;
-
-// A handle used by the download system for operations on external
-// objects associated with the download (e.g. URLRequest, TabContents,
-// DownloadManager).
-// This class needs to be copyable, so we can pass it across threads and not
-// worry about lifetime or const-ness.
-class DownloadProcessHandle {
- public:
- DownloadProcessHandle();
- DownloadProcessHandle(int child_id, int render_view_id, int request_id);
-
- // These functions must be called on the UI thread.
- TabContents* GetTabContents();
- DownloadManager* GetDownloadManager();
-
- int child_id() const { return child_id_; }
- int render_view_id() const { return render_view_id_; }
- int request_id() const { return request_id_; }
-
- private:
- // The ID of the child process that started the download.
- int child_id_;
-
- // The ID of the render view that started the download.
- int render_view_id_;
-
- // The ID associated with the request used for the download.
- int request_id_;
-};
-
-#endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_PROCESS_HANDLE_H_
« no previous file with comments | « chrome/browser/download/download_manager.cc ('k') | chrome/browser/download/download_process_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698