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

Side by Side Diff: Source/modules/webdatabase/DatabaseBackendBase.cpp

Issue 17080003: Get rid of modules/webdatabase/chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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 unified diff | Download patch
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/webdatabase/DatabaseObserver.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 21 matching lines...) Expand all
32 32
33 #include "core/dom/ExceptionCode.h" 33 #include "core/dom/ExceptionCode.h"
34 #include "core/platform/Logging.h" 34 #include "core/platform/Logging.h"
35 #include "core/platform/sql/SQLiteStatement.h" 35 #include "core/platform/sql/SQLiteStatement.h"
36 #include "core/platform/sql/SQLiteTransaction.h" 36 #include "core/platform/sql/SQLiteTransaction.h"
37 #include "modules/webdatabase/DatabaseAuthorizer.h" 37 #include "modules/webdatabase/DatabaseAuthorizer.h"
38 #include "modules/webdatabase/DatabaseBackendContext.h" 38 #include "modules/webdatabase/DatabaseBackendContext.h"
39 #include "modules/webdatabase/DatabaseBase.h" 39 #include "modules/webdatabase/DatabaseBase.h"
40 #include "modules/webdatabase/DatabaseContext.h" 40 #include "modules/webdatabase/DatabaseContext.h"
41 #include "modules/webdatabase/DatabaseManager.h" 41 #include "modules/webdatabase/DatabaseManager.h"
42 #include "modules/webdatabase/DatabaseObserver.h"
42 #include "modules/webdatabase/DatabaseTracker.h" 43 #include "modules/webdatabase/DatabaseTracker.h"
43 #include "weborigin/SecurityOrigin.h" 44 #include "weborigin/SecurityOrigin.h"
44 #include "wtf/HashMap.h" 45 #include "wtf/HashMap.h"
45 #include "wtf/HashSet.h" 46 #include "wtf/HashSet.h"
46 #include "wtf/PassRefPtr.h" 47 #include "wtf/PassRefPtr.h"
47 #include "wtf/RefPtr.h" 48 #include "wtf/RefPtr.h"
48 #include "wtf/StdLibExtras.h" 49 #include "wtf/StdLibExtras.h"
49 #include "wtf/text/CString.h" 50 #include "wtf/text/CString.h"
50 #include "wtf/text/StringHash.h" 51 #include "wtf/text/StringHash.h"
51 52
52 #include "modules/webdatabase/chromium/DatabaseObserver.h" // For error reportin g.
53
54 // Registering "opened" databases with the DatabaseTracker 53 // Registering "opened" databases with the DatabaseTracker
55 // ======================================================= 54 // =======================================================
56 // The DatabaseTracker maintains a list of databases that have been 55 // The DatabaseTracker maintains a list of databases that have been
57 // "opened" so that the client can call interrupt or delete on every database 56 // "opened" so that the client can call interrupt or delete on every database
58 // associated with a DatabaseBackendContext. 57 // associated with a DatabaseBackendContext.
59 // 58 //
60 // We will only call DatabaseTracker::addOpenDatabase() to add the database 59 // We will only call DatabaseTracker::addOpenDatabase() to add the database
61 // to the tracker as opened when we've succeeded in opening the database, 60 // to the tracker as opened when we've succeeded in opening the database,
62 // and will set m_opened to true. Similarly, we only call 61 // and will set m_opened to true. Similarly, we only call
63 // DatabaseTracker::removeOpenDatabase() to remove the database from the 62 // DatabaseTracker::removeOpenDatabase() to remove the database from the
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 DatabaseObserver::reportExecuteStatementResult(this, errorSite, webSqlErrorC ode, sqliteErrorCode); 630 DatabaseObserver::reportExecuteStatementResult(this, errorSite, webSqlErrorC ode, sqliteErrorCode);
632 } 631 }
633 632
634 void DatabaseBackendBase::reportVacuumDatabaseResult(int sqliteErrorCode) 633 void DatabaseBackendBase::reportVacuumDatabaseResult(int sqliteErrorCode)
635 { 634 {
636 DatabaseObserver::reportVacuumDatabaseResult(this, sqliteErrorCode); 635 DatabaseObserver::reportVacuumDatabaseResult(this, sqliteErrorCode);
637 } 636 }
638 637
639 638
640 } // namespace WebCore 639 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/webdatabase/DatabaseObserver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698