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

Unified Diff: chrome/browser/background/background_contents.h

Issue 793403003: Move BackgroundContents to the directory in which it belongs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pageidcrash
Patch Set: rebase Created 6 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
« no previous file with comments | « no previous file | chrome/browser/background/background_contents.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/background/background_contents.h
diff --git a/chrome/browser/tab_contents/background_contents.h b/chrome/browser/background/background_contents.h
similarity index 90%
rename from chrome/browser/tab_contents/background_contents.h
rename to chrome/browser/background/background_contents.h
index 25a9b415025b047701e85106c9e238b790c8783e..59711e4b82af8f5391be56a98e296de3aa50b27f 100644
--- a/chrome/browser/tab_contents/background_contents.h
+++ b/chrome/browser/background/background_contents.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_
-#define CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_
+#ifndef CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_H_
+#define CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_H_
#include <string>
@@ -21,8 +21,9 @@ class SessionStorageNamespace;
class SiteInstance;
};
-// This class consumes WebContents. It can host a renderer, but does not
-// have any visible display.
+// This class maintains a WebContents used in the background. It can host a
+// renderer, but does not have any visible display.
+// TODO(atwilson): Unify this with background pages; http://crbug.com/77790
class BackgroundContents : public content::WebContentsDelegate,
public content::WebContentsObserver,
public content::NotificationObserver {
@@ -102,4 +103,4 @@ struct BackgroundContentsOpenedDetails {
const base::string16& application_id;
};
-#endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_
+#endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_H_
« no previous file with comments | « no previous file | chrome/browser/background/background_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698