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

Side by Side Diff: trunk/src/chrome/browser/extensions/dom_actions.h

Issue 14378006: Revert 195265 "Improved extension activity logging for the chrom..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:mergeinfo
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_DOM_ACTIONS_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_DOM_ACTIONS_H_
6 #define CHROME_BROWSER_EXTENSIONS_DOM_ACTIONS_H_ 6 #define CHROME_BROWSER_EXTENSIONS_DOM_ACTIONS_H_
7 7
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "chrome/browser/extensions/activity_actions.h" 9 #include "chrome/browser/extensions/activity_actions.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 // This class describes extension actions that pertain to DOM API calls and 14 // This class describes extension actions that pertain to DOM API calls and
15 // content script insertions. 15 // content script insertions.
16 class DOMAction : public Action { 16 class DOMAction : public Action {
17 public: 17 public:
18 enum DOMActionType { 18 enum DOMActionType {
19 MODIFIED, // For Content Script DOM manipulations 19 MODIFIED, // For Content Script DOM manipulations
20 READ, // For Content Script DOM manipulations 20 READ, // For Content Script DOM manipulations
21 INSERTED, // For when Content Scripts are added to pages 21 INSERTED, // For when Content Scripts are added to pages
22 XHR, // When an extension core sends an XHR 22 XHR, // When an extension core sends an XHR
23 WEBREQUEST, // When a page request is modified with the WebRequest API
24 }; 23 };
25 24
26 static const char* kTableName; 25 static const char* kTableName;
27 static const char* kTableContentFields[]; 26 static const char* kTableContentFields[];
28 27
29 // Create a new database table for storing DOMActions, or update the schema if 28 // Create a new database table for storing DOMActions, or update the schema if
30 // it is out of date. Any existing data is preserved. 29 // it is out of date. Any existing data is preserved.
31 static bool InitializeTable(sql::Connection* db); 30 static bool InitializeTable(sql::Connection* db);
32 31
33 // Create a new DOMAction to describe a new DOM API call. 32 // Create a new DOMAction to describe a new DOM API call.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 std::string args_; 77 std::string args_;
79 std::string extra_; 78 std::string extra_;
80 79
81 DISALLOW_COPY_AND_ASSIGN(DOMAction); 80 DISALLOW_COPY_AND_ASSIGN(DOMAction);
82 }; 81 };
83 82
84 } // namespace extensions 83 } // namespace extensions
85 84
86 #endif // CHROME_BROWSER_EXTENSIONS_DOM_ACTIONS_H_ 85 #endif // CHROME_BROWSER_EXTENSIONS_DOM_ACTIONS_H_
87 86
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698