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

Unified Diff: chrome/browser/extensions/activity_log/dom_actions.h

Issue 19690003: Extension activity log database refactoring (step 3) (Closed) Base URL: http://git.chromium.org/chromium/src.git@refactor2
Patch Set: Do not set bad BlockedChromeActivityDetail::Reason values Created 7 years, 5 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/activity_log/dom_actions.h
diff --git a/chrome/browser/extensions/activity_log/dom_actions.h b/chrome/browser/extensions/activity_log/dom_actions.h
deleted file mode 100644
index 9129a39486888409524caaf87caac8337617ea49..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/activity_log/dom_actions.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) 2013 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_ACTIVITY_LOG_DOM_ACTIONS_H_
-#define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_DOM_ACTIONS_H_
-
-#include "base/strings/string16.h"
-#include "chrome/browser/extensions/activity_log/activity_actions.h"
-#include "chrome/common/extensions/dom_action_types.h"
-#include "url/gurl.h"
-
-namespace extensions {
-
-// This class describes extension actions that pertain to DOM API calls and
-// content script insertions.
-class DOMAction : public Action {
- public:
- // Create a new DOMAction to describe a new DOM API call.
- // If the DOMAction is on a background page, the url & url_title may be null.
- // If the DOMAction refers to a content script insertion, api_call may be null
- // but args should be the name of the content script.
- DOMAction(const std::string& extension_id,
- const base::Time& time,
- const DomActionType::Type verb, // what happened
- const GURL& url, // the url of the page the
- // script is running on
- const string16& url_title, // the page title
- const std::string& api_call, // the DOM API call
- const std::string& args, // the args
- const std::string& extra); // any extra logging info
-
- virtual scoped_ptr<api::activity_log_private::ExtensionActivity>
- ConvertToExtensionActivity() OVERRIDE;
-
- // Record the action in the database.
- virtual bool Record(sql::Connection* db) OVERRIDE;
-
- // Print a DOMAction as a regular string for debugging purposes.
- virtual std::string PrintForDebug() OVERRIDE;
-
- // Helper methods for retrieving the values and debugging.
- std::string VerbAsString() const;
- const GURL& url() const { return url_; }
- const string16& url_title() const { return url_title_; }
- const std::string& api_call() const { return api_call_; }
- const std::string& args() const { return args_; }
- const std::string& extra() const { return extra_; }
-
- protected:
- virtual ~DOMAction();
-
- private:
- DomActionType::Type verb_;
- GURL url_;
- string16 url_title_;
- std::string api_call_;
- std::string args_;
- std::string extra_;
-
- DISALLOW_COPY_AND_ASSIGN(DOMAction);
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_DOM_ACTIONS_H_
-
« no previous file with comments | « chrome/browser/extensions/activity_log/blocked_actions.cc ('k') | chrome/browser/extensions/activity_log/dom_actions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698