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

Side by Side Diff: Source/modules/webdatabase/SQLResultSet.h

Issue 19724003: Revert "Transition modules/** to use ExceptionState" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/modules/webdatabase/SQLError.h ('k') | Source/modules/webdatabase/SQLResultSet.cpp » ('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) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 18 matching lines...) Expand all
29 #ifndef SQLResultSet_h 29 #ifndef SQLResultSet_h
30 #define SQLResultSet_h 30 #define SQLResultSet_h
31 31
32 #include "bindings/v8/ScriptWrappable.h" 32 #include "bindings/v8/ScriptWrappable.h"
33 #include "modules/webdatabase/DatabaseBasicTypes.h" 33 #include "modules/webdatabase/DatabaseBasicTypes.h"
34 #include "modules/webdatabase/SQLResultSetRowList.h" 34 #include "modules/webdatabase/SQLResultSetRowList.h"
35 #include "wtf/ThreadSafeRefCounted.h" 35 #include "wtf/ThreadSafeRefCounted.h"
36 36
37 namespace WebCore { 37 namespace WebCore {
38 38
39 class ExceptionState;
40
41 class SQLResultSet : public ThreadSafeRefCounted<SQLResultSet>, public ScriptWra ppable { 39 class SQLResultSet : public ThreadSafeRefCounted<SQLResultSet>, public ScriptWra ppable {
42 public: 40 public:
43 static PassRefPtr<SQLResultSet> create() { return adoptRef(new SQLResultSet) ; } 41 static PassRefPtr<SQLResultSet> create() { return adoptRef(new SQLResultSet) ; }
44 42
45 SQLResultSetRowList* rows() const; 43 SQLResultSetRowList* rows() const;
46 44
47 int64_t insertId(ExceptionState&) const; 45 int64_t insertId(ExceptionCode&) const;
48 int rowsAffected() const; 46 int rowsAffected() const;
49 47
50 // For internal (non-JS) use 48 // For internal (non-JS) use
51 void setInsertId(int64_t); 49 void setInsertId(int64_t);
52 void setRowsAffected(int); 50 void setRowsAffected(int);
53 51
54 private: 52 private:
55 SQLResultSet(); 53 SQLResultSet();
56 54
57 RefPtr<SQLResultSetRowList> m_rows; 55 RefPtr<SQLResultSetRowList> m_rows;
58 int64_t m_insertId; 56 int64_t m_insertId;
59 bool m_insertIdSet; 57 bool m_insertIdSet;
60 int m_rowsAffected; 58 int m_rowsAffected;
61 }; 59 };
62 60
63 } // namespace WebCore 61 } // namespace WebCore
64 62
65 #endif // SQLResultSet_h 63 #endif // SQLResultSet_h
OLDNEW
« no previous file with comments | « Source/modules/webdatabase/SQLError.h ('k') | Source/modules/webdatabase/SQLResultSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698