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

Unified Diff: chrome/browser/extensions/declarative_user_script_master.h

Issue 955473002: Move DeclarativeUserScriptManager/Master and UserScriptLoader to //extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
Index: chrome/browser/extensions/declarative_user_script_master.h
diff --git a/chrome/browser/extensions/declarative_user_script_master.h b/chrome/browser/extensions/declarative_user_script_master.h
deleted file mode 100644
index e9af244cbe43e0ea46607b438231ddaadc974f53..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/declarative_user_script_master.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2014 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_EXTENSIONS_DECLARATIVE_USER_SCRIPT_MASTER_H_
-#define CHROME_BROWSER_EXTENSIONS_DECLARATIVE_USER_SCRIPT_MASTER_H_
-
-#include "base/scoped_observer.h"
-#include "chrome/browser/extensions/extension_user_script_loader.h"
-
-class Profile;
-
-namespace extensions {
-
-class UserScript;
-
-// Manages declarative user scripts for a single extension. Owns a
-// UserScriptLoader to which file loading and shared memory management
-// operations are delegated, and provides an interface for adding, removing,
-// and clearing scripts.
-class DeclarativeUserScriptMaster {
- public:
- DeclarativeUserScriptMaster(Profile* profile, const HostID& host_id);
- ~DeclarativeUserScriptMaster();
-
- // Adds script to shared memory region. This may not happen right away if a
- // script load is in progress.
- void AddScript(const UserScript& script);
-
- // Removes script from shared memory region. This may not happen right away if
- // a script load is in progress.
- void RemoveScript(const UserScript& script);
-
- // Removes all scripts from shared memory region. This may not happen right
- // away if a script load is in progress.
- void ClearScripts();
-
- const HostID& host_id() const { return host_id_; }
-
- private:
- // ID of host that owns scripts that this component manages.
- HostID host_id_;
-
- // Script loader that handles loading contents of scripts into shared memory
- // and notifying renderers of script updates.
- ExtensionUserScriptLoader loader_;
-
- DISALLOW_COPY_AND_ASSIGN(DeclarativeUserScriptMaster);
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_DECLARATIVE_USER_SCRIPT_MASTER_H_

Powered by Google App Engine
This is Rietveld 408576698